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
Thanks @punkpeye. I looked into this a bit at one point, however couldn't find an easy way to integrate it without rethinking the approach, since at the moment Zod simply gets stubbed, meaning the entire library is omitted in production.
However, I'll give this a look again in 2025, there might be a way to allow optional inclusion of transformation behind some option flag.
When defining a schema, we sometime add transformations.
zod-dev should still apply transformations in production.
Demo: https://stackblitz.com/edit/typescript-desjd9?file=schemas%2FschemaWithDefaultType.ts
The text was updated successfully, but these errors were encountered: