News for hackers. Stuff that matters.
Re:Zod: TypeScript-first schema validation with static type ... by ARandumGuy on Thursday October 10, 2024 @01:10PM (#41800961)
My company uses zod to validate data for HTML requests, and I'd say it works pretty well for that. It lets us detail our data structure in zod, validate the completely untyped HTML data, and be confident that once we reach our actual code, the data is well typed.

Zod feels like a crutch for limitations in Javascript and Typescript. But I've found it to be a very useful crutch, and I wouldn't want to write a Typescript API without it.

There are no comments on this comment yet.