News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.