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
UseForm API needs to add a generic as form data’s type #21195
Comments
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 |
There's any way to work on this? |
This is not working and is not a proper solutions for the issue |
that was a suggestion not an actual solution! |
Have a deadline for solving this problem? |
@suncunhu, currently typescript do not support generic with HOC that means we can not provide this ability since Form component use Pls feel free to contribute if you have the solution. |
Is this ready to be used somehow? Ant Design 4.5.2 still seems to be using the 1.8.0 rc-field-form version. |
@JensD98 antd release minor version each end of month |
why |
What problem does this feature solve?
Calling values in the callback to the validateFields method using the form instance returned by useForm() does not require a double assertion or simply forces as to be any type to override its default type Store {[x: string]: any}
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: