News for hackers. Stuff that matters.
Re:Deno Joins TC39 by kipple on Monday December 13, 2021 @02:19PM (#29543252)
This would be a big (but exciting) departure from the current TS goal of "Impose no runtime overhead on emitted programs." [1]

Recently, I've been using Zod [2] and find it to be a satisfying equivalent: you define a schema, and then you get both a TS type AND a JS parser/validator (which works as a TS typeguard).

[1] https://github.com/microsoft/TypeScript/wiki/TypeScript-Desi... [2] https://github.com/colinhacks/zod

Re:Deno Joins TC39 by moron4hire on Monday December 13, 2021 @02:55PM (#29543743)
Zod looks super cool. I'll have to check it out in depth.