FormNodeValue
Committed value inferred from any form(), group(), array(), or field() instance. Equivalent to ReturnType<TNode>; preserves nested values and field nullability.
Import
import type { FormNodeValue } from '@ngblocks/form-nodes';
When to use it
Extract a value type from an existing node with FormNodeValue<typeof myForm>. This works across node kinds and avoids repeating the model's value interface.
Declaration
type FormNodeValue<TNode extends AnyNode> = ReturnType<TNode>;
Type parameters
| Parameter | Constraint | Default |
|---|---|---|
TNode | AnyNode | Required |