Open marilari88 opened 4 months ago
Sorry what's the difference with z.infer
? https://zod.dev/?id=type-inference
z.infer give us the type definition from schema but how to print them in the UI?
z.infer give us the type definition from schema but how to print them in the UI?
🤔 didn't think about this.
Utilize the zod-to-ts library (https://github.com/sachinraja/zod-to-ts) to automatically generate TypeScript types from our Zod schema. This would allow us to maintain accurate and up-to-date type definitions in a dedicated section (below the schema?)