Import
import { BooleanPartNode } from "@typed/template/Template";Signatures
export declare class BooleanPartNode {
readonly _tag: "boolean-part";
readonly name: string;
readonly index: number;
constructor(name: string, index: number);
}Why
Truth values add or remove the native attribute rather than stringify it.
Ownership and lifetime
The part owns no Attr; its render Scope owns the retained updater.
Constructor
Creates dynamic boolean-attribute syntax.
Property: _tag
Dynamic-boolean discriminant.
Property: _tag: Why
Selects native attribute presence toggling.
Property: _tag: Ownership and lifetime
Immutable AST metadata.
Property: index
Interpolation index controlling presence.
Property: index: Why
Locates the boolean producer without tree traversal.
Property: index: Ownership and lifetime
Immutable scalar metadata; the render Scope owns the producer.
Property: name
Native boolean attribute name.
Property: name: Why
Identifies the exact attribute updated by the part.
Property: name: Ownership and lifetime
Retained string metadata.
Examples
import { BooleanPartNode } from "@typed/template/Template"
const part = new BooleanPartNode("disabled", 0)Other public imports
These import paths expose the same declaration. Each page retains its own public name and signature.