Re:Why doesn't TypeScript properly type Object.keys?
by eyelidlessness on Saturday June 24, 2023 @01:45PM
(#36460901)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.