type-alias / @typed/template

PartNode

Represents a single dynamic interpolation part in the template AST.

Package version
1.0.0-beta.13
Category
Dynamic positions
Since
1.0.0

Import

import type { PartNode } from "@typed/template";

Signatures

export type PartNode = AttrPartNode | BooleanPartNode | ClassNamePartNode | DataPartNode | EventPartNode | NodePart | PropertyPartNode | PropertiesPartNode | RefPartNode | TextPartNode | CommentPartNode;

Why

Each tag selects precise DOM update and SSR escaping behavior instead of one generic interpolation operation.

Ownership and lifetime

The part records an input index; the render Scope owns the eventual updater.

Examples

import { TextPartNode, type PartNode } from "@typed/template/Template"

const part: PartNode = new TextPartNode(0)

Other public imports

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

Source