class / @typed/template/Template

CommentPartNode

Represents a dynamic comment part.

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

Import

import { CommentPartNode } from "@typed/template/Template";

Signatures

export declare class CommentPartNode {
    readonly _tag: "comment-part";
    readonly index: number;
    constructor(index: number);
}

Why

Dynamic comment output has an explicit escaped representation and direct native Comment target.

Ownership and lifetime

The AST owns only an index; the render Scope owns the updater.

Constructor

Creates dynamic comment syntax.

Property: _tag

Dynamic-comment discriminant.

Property: _tag: Why

Selects a retained native Comment target for direct updates.

Property: _tag: Ownership and lifetime

Immutable AST metadata.

Property: index

Interpolation index driving the retained comment target.

Property: index: Why

Locates the producer without structural reconciliation.

Property: index: Ownership and lifetime

Immutable scalar metadata; the render Scope owns the producer.

Examples

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

const part = new CommentPartNode(0)

Other public imports

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

Source