Import
import { AttrPartNode } from "@typed/template";Signatures
export declare class AttrPartNode {
readonly _tag: "attr";
readonly name: string;
readonly index: number;
constructor(name: string, index: number);
}Why
The retained input index drives direct local attribute updates and escaped SSR.
Ownership and lifetime
The part owns no Attr or producer; the render Scope owns both updater and source.
Constructor
Creates dynamic attribute syntax.
Property: _tag
Dynamic-attribute discriminant.
Property: _tag: Why
Selects direct Attr updates and escaped SSR.
Property: _tag: Ownership and lifetime
Immutable AST metadata.
Property: index
Interpolation index driving this attribute.
Property: index: Why
Locates the producer for one retained Attr target.
Property: index: Ownership and lifetime
Immutable scalar metadata; the render Scope owns the producer.
Property: name
Native attribute name.
Property: name: Why
Identifies the target whose sparse segments are joined.
Property: name: Ownership and lifetime
Retained string metadata.
Examples
import { AttrPartNode } from "@typed/template/Template"
const part = new AttrPartNode("src", 0)Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.