Handle to a writable Behavior — an input node.

Created via Graph.input. Realises the writable Behavior primitive: input(initial) : Behavior a where input(t₀) = initial. The handle becomes a write target for tx.set inside a commit and a read target for read/subscribe/explain outside one.

interface InputNode<T> {
    _phantom?: { polarity: "input"; tag: typeof _NODE_BRAND_TAG; value: T };
    id: string;
}

Type Parameters

  • T

    Value type carried by the input.

Properties

Properties

_phantom?: { polarity: "input"; tag: typeof _NODE_BRAND_TAG; value: T }

Phantom brand carrying the value type AND the input/derived polarity for type-system narrowing. Never present at runtime — _phantom is undefined on every value the engine produces. Polarity is encoded in the tag field type so the public Node<T> union remains structural while still type-discriminable at the call sites that need it (e.g. Tx.set).

id: string

Stable identifier.