react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

FormApi restart is not exposed in types

Open jahglow opened this issue 5 years ago • 5 comments

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

jahglow avatar Aug 04 '20 13:08 jahglow

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.

nad182 avatar Aug 12 '20 17:08 nad182

Definitely could use this one.

johncblandii avatar Sep 29 '20 20:09 johncblandii

This would be helpful, any updates on this?

VicAv99 avatar Sep 29 '20 21:09 VicAv99

This functionality would really be nice to have in typescript, having to work around to recreate a built-in feature is definitely not-ideal

tj111 avatar Dec 23 '20 14:12 tj111

Fix released in [email protected].

erikras avatar Mar 05 '21 09:03 erikras

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.

davoam avatar Apr 20 '22 12:04 davoam