Zod enums vs Native enums
From what I understood from the documentation of Zod, enum should be use as followed :
But it is also possible to use native enums :
Using native enums seems more easy so, why would I use zod enums ? Have I missed something ?
But it is also possible to use native enums :
Using native enums seems more easy so, why would I use zod enums ? Have I missed something ?
GitHub
TypeScript-first schema validation with static type inference
GitHub
TypeScript-first schema validation with static type inference
