Hacker News new | ask | show | jobs
by ChocolateGod 427 days ago
It's not perfect and doesn't cover all of zods functionality (iirc coercion) but I've used https://www.npmjs.com/package/ts-to-zod before to generate zod schemas directly from types.