3 ms·
Discriminated unions are also a wonderful part of the zod library. I use them to overload endpoints for multiple relevant operations.
by blorenz 2y ago
Discriminated unions are also a wonderful part of the zod library. I use them to overload endpoints for multiple relevant operations.
- roshankhan28 2y ago+1 for the discriminated unions
- myvoiceismypass 2y agoI 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.