schalkventer / zod-dev

🚦 A tiny abstraction that conditionally disables Zod run-time parsing while preserving type inference
https://www.npmjs.com/package/zod-dev
5 stars 1 forks source link

Transformations are not kept in production #1

Open yairopro opened 5 months ago

yairopro commented 5 months ago

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

schalkventer commented 5 months ago

Thanks for the heads-up @yairopro. I'll have a look at this tomorrow. 👍