Hacker News new | ask | show | jobs
by comp_throw7 1098 days ago
Use zod or io-ts, they solve this problem (though I agree that having something native to the language would be nice, if it were practical).