form.Field validator no longer infers the correct TS type? #1071
-
Recently updated to the latest version of Example:
The TS errors can even be seen in the provided simple example: https://tanstack.com/form/latest/docs/framework/react/examples/simple Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You're right, to cover an edge case I missed in 0.40 it broke the types in 0.41, I apologize. You can downgrade to 0.40 for now as types should be fine there, while I'll try to fix that (and understand why type tests are still passing) |
Beta Was this translation helpful? Give feedback.
-
No worries, thank you very much for the quick response! |
Beta Was this translation helpful? Give feedback.
You're right, to cover an edge case I missed in 0.40 it broke the types in 0.41, I apologize.
You can downgrade to 0.40 for now as types should be fine there, while I'll try to fix that (and understand why type tests are still passing)