Model - KeyedNode
API reference for src/nodes/KeyedNode on @huukhanhnguyen/model, reachable from ..
See the Guide for the ModelJSON / evaluate pipeline.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
hasLabelOf
function
True when node.label carries real authored text — vs. still holding the constructor's default sentinel, or having been cleared back to empty.
hasLabelOf(node: KeyedNode): booleansetEnabledOf
function
Set or clear (null/"") the enable expression.
setEnabledOf(node: KeyedNode, expr: string | null): voidsetKeyOf
function
Rename the node model-wide: reserved/builtin/duplicate checks, then rewrite every expression referencing the old key. keyType is the noun in the builtin-key error ("operation"/"container").
setKeyOf(node: KeyedNode, key: string, keyType: string): voidsetLabelOf
function
Set or clear (null/"") the label expression.
setLabelOf(node: KeyedNode, expr: string | null): void