class / @typed/template

PropertyPartNode

Represents a property assignment (e.g. .value="${value}").

Package version
1.0.0-beta.13
Category
Property bindings
Since
1.0.0

Import

import { PropertyPartNode } from "@typed/template";

Signatures

export declare class PropertyPartNode {
    readonly _tag: "property";
    readonly name: string;
    readonly index: number;
    constructor(name: string, index: number);
}

Why

Native element properties remain distinct from serialized attributes.

Ownership and lifetime

The part stores metadata; the mounted part owns its local property writes.

Constructor

Creates native property syntax.

Property: _tag

Native-property discriminant.

Property: _tag: Why

Selects property assignment rather than attribute serialization.

Property: _tag: Ownership and lifetime

Immutable AST metadata.

Property: index

Interpolation index producing the property value.

Property: index: Why

Locates the producer for one direct property update.

Property: index: Ownership and lifetime

Immutable scalar metadata; the render Scope owns the producer.

Property: name

Native property name.

Property: name: Why

Identifies the exact property target on the native element.

Property: name: Ownership and lifetime

Retained string metadata.

Examples

import { PropertyPartNode } from "@typed/template/Template"

const part = new PropertyPartNode("value", 0)

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source