FormPrimitives
The family of configured field, form, group, and array factories.
Import
import type { FormPrimitives } from '@ngblocks/form-nodes';
When to use it
Use for a bundle returned by createFormPrimitives(). Keep the configured factories together when sharing defaults across declarations.
Declaration
type FormPrimitives<TNullable extends boolean | undefined = boolean | undefined> = {
field: FieldFactory<TNullable>;
form: FormFactory<TNullable>;
group: GroupFactory<TNullable>;
array: ArrayFactory<TNullable>;
};
Type parameters
| Parameter | Constraint | Default |
|---|---|---|
TNullable | boolean | undefined | boolean | undefined |