AddedNode
Result of attaching a node definition or shorthand dynamically to an object node.
Import
import type { AddedNode } from '@ngblocks/form-nodes';
When to use it
Use when describing the result of a dynamic addition. The resulting node preserves the normalized definition and its new parent type.
Declaration
type AddedNode<TDefinition, TParent extends AnyNode> = NodeWithParent<NormalizedNode<TDefinition>, TParent>;
Type parameters
| Parameter | Constraint | Default |
|---|---|---|
TDefinition | Unconstrained | Required |
TParent | AnyNode | Required |