TypedForm
A definition written against one builder's registries, as defineForm() takes it. It is also a JsonForm.
Generics
TFieldTypesextends Record<string, FieldTypeDef>TRulesextends Record<string, RuleDef>TFormRulesextends Record<string, FormRuleDef>TExtensionPropsextends ExtensionProps
Definition
TypedFormversion'1'fieldsreadonly TypedField[]formRulesreadonly TypedFormRule[]: optionallayoutTypedLayout: optional$schemastring: optional
Explanation
The package also exports the types it is made of:
TypedField: a field of a registered type, with that type's props, the keys every field takes, and the keys extensions add.TypedRuleandTypedFormRule: a registered rule or form rule, with its params.TypedLayoutandTypedLayoutItem: the layout, with display elements typed by their props.ExtensionPropsandNoExtensionProps: the keys a builder's extensions add to fields, and to steps and sections.