-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to type the form store? #70
Comments
hi @mgcrea, do you have interested to improve this? |
This should also be able without the use of
This works since TypeScript 2.9 https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html#generic-type-arguments-in-jsx-elements |
This seems like a crucial upgrade, otherwise type safety is lost. |
This is driving me crazy since I have to remap every single form field to the type i want, although the types are the same, and I still got a bunch of another forms. |
any updates? |
Have a deadline for solving this problem? |
Did not found a documented way to type the store values. Was expecting this API (what's used by react-hook-form):
However
useForm
does not seem to accept a generic type.Is there another way to type a form store or do you have another API in mind?
The text was updated successfully, but these errors were encountered: