3 ms·
You can build this in TypeScript, using type guards and/or type assertions. Doing so manually for each type might be annoying, but it’s fairly straightforward t
by eyelidlessness 3y ago
You can build this in TypeScript, using type guards and/or type assertions. Doing so manually for each type might be annoying, but it’s fairly straightforward to generalize with eg a wrapper around a generic library like zod.