-
-
Notifications
You must be signed in to change notification settings - Fork 493
Open
Description
From the typings, I can see that Form props are of type FormProps from 'react-final-form' and that extends Config from 'final-form'. Config accepts type generics that eventually set the type of values ->
Config<FormData = object> {
onSubmit: (values: FormData) // ...
}
How can I configure the values type from within the Form itself so that I have intellisense within onSubmit and validation handlers and everywhere else where values appear?
PS: shouldn't the values here be also of FormData
validate?: (values: object)
initialValues: object
Metadata
Metadata
Assignees
Labels
No labels