react-final-form
react-final-form copied to clipboard
FormApi restart is not exposed in types
Are you submitting a bug report or a feature request?
bug report
What is the current behavior?
What is the expected behavior?
FormApi type must include restart funciton definition
Sandbox Link
What's your environment?
react-final-form 6.5.1
Other information
Facing the same issue:
Property 'restart' does not exist on type 'FormApi<Invitation, Partial<Invitation>>'.ts(2339)
I'm also using [email protected]
UPD: submitted a PR here to fix this.
Definitely could use this one.
This would be helpful, any updates on this?
This functionality would really be nice to have in typescript, having to work around to recreate a built-in feature is definitely not-ideal
Fix released in [email protected].
Probably, this issue can be closed? Since, as mentioned in @erikras's comment after upgrading final-form to version 4.20.2 the problem has gone.