You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is almost a dupe of #610, but heads up that you should not provide the default type and expect inferencing (say, of the validator) to still run. This is a limitation of TS, not our library.
Describe the bug
I had to pass
typeof zodValidator
as a second type param forvalidatorAdapter
to not throw a TS warning.Your minimal, reproducible example
Expected behavior
I didn't expect the following error:
It wasn't until I added the second type param:
createFormFactory<FormSchema, typeof zodValidator>
that it went away.(I'm not sure if that's technically correct or the desired DX :))
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
react + ts
TanStack Form adapter
react-form
TanStack Form version
0.19.0
TypeScript version
5.4.4
Additional context
No response
The text was updated successfully, but these errors were encountered: