Convenience constructors — the one place a node of each kind is built.
Every producer goes through these rather than assembling { kind, configuration } inline, so the
pairing of a kind with its configuration shape has exactly one definition. TypeScript enforces the
pairing, but a helper also makes the call sites read as intent rather than as structure.
Convenience constructors — the one place a node of each kind is built.
Every producer goes through these rather than assembling
{ kind, configuration }inline, so the pairing of a kind with its configuration shape has exactly one definition. TypeScript enforces the pairing, but a helper also makes the call sites read as intent rather than as structure.