Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
blorenz
· 2y ago · 0 comments
Discriminated unions are also a wonderful part of the zod library. I use them to overload endpoints for multiple relevant operations.
Comments
[–]
roshankhan28
2y ago
+1 for the discriminated unions
[–]
myvoiceismypass
2y ago
I used to use io-ts heavily but zod is my go to now - and it’s so ergonomic and easy for typescript newbies to pick up and grasp.