Skip to content

Cannot use Zod .transform #415

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

Closed
alii opened this issue Jun 13, 2022 · 1 comment
Closed

Cannot use Zod .transform #415

alii opened this issue Jun 13, 2022 · 1 comment

Comments

@alii
Copy link

alii commented Jun 13, 2022

Describe the bug
We cannot use Zod's .transform because it breaks types

To 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 FieldError

@alii alii changed the title Cannot use Zod .transfor Cannot use Zod .transform Jun 13, 2022
@alii alii closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2022
@alii
Copy link
Author

alii commented Jun 13, 2022

Replaced by #416 — this was a typing error on my part however there's still an issue with the resolver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant