3 ms·
As far as I know, the only available approaches are brands and just wrapping it in a one element object (but that's even worse). But the branding is a lot easie
by shirogane86x 4y ago
As far as I know, the only available approaches are brands and just wrapping it in a one element object (but that's even worse). But the branding is a lot easier if you just use something like zod [1] for all your types.
[1] https://github.com/colinhacks/zod#brand https://github.com/colinhacks/zod#brand
- jbm 4y agoThis is great! Thank you for the share.