Zod and the way to define schemas with it has been one of the reasons I didn't want to touch TypeScript as it's becoming more prevalent!
back
1 comments
Can you elaborate?
It defines yet another way to declare schemas in a way that's not reusable. ArkType mostly uses TypeScript's, so, it feels more natural.
That's going in the wrong direction IMO. TypeScript checks types only, not business logic. Zod does both.
Zod's way to check business logic is extremely underpowered and, again, it's not reusable!