Problem: You have TypeScript types, but want to use Zod too (for *runtime*...
Problem: You have TypeScript types, but want to use Zod too (for *runtime* validation)
Solution:
1. Paste your TS type into transform tools to generate a Zod schema.
2. Enhance the schema as desired.
3. Use Zod.infer to derive the type. https://transform.tools/typescript-to-zod…
