Missing TypeScript Annotation in Beta 5 for @submit Handler's Node Property #130
Labels
🐛 bug
Verified bug by team
🚀 release-ready
Feature or fix is complete and on an upcoming release branch
Reproduction
https://github.com/formkit/formkit/blob/master/packages/vue/src/FormKit.ts#L23
Describe the bug
Sorry no playground example as the environment is not typescript so can't reproduce there.
In the docs and in working code it shows that the
@submit
method for a form passes bothdata
andnode
to the handler but when you attempt to implement this function signature you get the following typescript error:Here's the offending line:
https://github.com/formkit/formkit/blob/master/packages/vue/src/FormKit.ts#L23
Environment
• macOS 12.2.1
• Chrome but N/A
• 98.0.4758.109
The text was updated successfully, but these errors were encountered: