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
Expected behavior
We can use zod .transform as expected and access the transformed values in the submit function. Errors will still be correct and typed as FieldError
The text was updated successfully, but these errors were encountered:
alii
changed the title
Cannot use Zod .transfor
Cannot use Zod .transform
Jun 13, 2022
Describe the bug
We cannot use Zod's
.transform
because it breaks typesTo Reproduce
Playground Link
Expected behavior
We can use zod
.transform
as expected and access the transformed values in the submit function. Errors will still be correct and typed as FieldErrorThe text was updated successfully, but these errors were encountered: