Theo's Typesafe CultTTC
Theo's Typesafe Cultβ€’4y agoβ€’
27 replies
Vimes

When to use Zod?

I'v seen the youtube hype for Zod now, but it still unclear to me when I should actually use Zod.

Most of the examples I find online use Zod for something like API-data or user input data (like forms). But I use TS for so much more (well try to any way, still learning πŸ˜‰). Should I just forget that TS exists and use Zod for everything I used to do in TS or should I use TS when not dealing with API-data or user input?
Was this page helpful?