A form value that can survive the DOM round trip. These constitute the leaves in a FormData type.
This type could perhaps be expanded thanks to HTMLInputElement
's
valueAsNumber
(and even valueAsDate
maybe), but these aren't easy
to get at via final-form so we omit the corresponding types here.
All JavaScript types except arrays and objects (and void). These constitute the leaves in a ParsedFormData type.
A strongly typed version of the ValidationErrors type from final-form.
Also doubles as submission errors.
"Submission errors must be in the same shape as the values of the form. You may return a generic error for the whole form (e.g. 'Login Failed') using the special FORM_ERROR string key."
"Validation errors must be in the same shape as the values of the form. You may return a generic error for the whole form using the special FORM_ERROR string key."
Generated using TypeDoc
Replace any with string for improved type-safety. io-ts error messages are strings, so we can get away with this here.