FormValue
Object value produced by a form, with each child node mapped to its readable value.
Import
import type { FormValue } from '@ngblocks/form-nodes';
When to use it
Use to derive the read value contract from the form's child or item node types. The result describes raw data, not child nodes. Use FormNodeValue<typeof node> when starting from an existing node instance.
Declaration
type FormValue<TNodes extends Nodes> = {
[K in keyof TNodes]: NodeValue<TNodes[K]>;
};
Type parameters
| Parameter | Constraint | Default |
|---|---|---|
TNodes | Nodes | Required |