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 ->
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?
From the typings, I can see that Form props are of type
FormProps from 'react-final-form'
and that extendsConfig from 'final-form'
. Config accepts type generics that eventually set the type ofvalues
->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