FormBuilderWithReason
ref / conversations / FormBuilderWithReason
An object that fully specifies how to build a form field.
Contains as properties of Form
If the validation function cannot provide reason as to why validation has failed, it is possible to use Form
Extends
ts
FormConfigWithReason<C, T, R>
Methods
validate
A function that validates a given context.
When validation succeeds, a value can be extracted from the context object. When validation fails, an error can be generated. The result of the validation needs to be encoded using a Result type.