News for hackers. Stuff that matters.
Re:Show HN: Ezno, a type checker for JavaScript and optimise... by eagsalazar2 on Friday September 23, 2022 @12:46PM (#32954240)
This x1000! Type guards are a joke and real runtime type checking could be so easy if they prioritized it. Yes you can use zod but then you have to define your types through zod which isn't as neat.

I actually googled for this just yesterday!

Re:Show HN: Ezno, a type checker for JavaScript and optimise... by jitl on Friday September 23, 2022 @10:51PM (#32959339)
I’m working on a code generator that converts Typescript types to other schema descriptions. One of the conversions is TS -> TypeBox/JSONSchema: https://github.com/justjake/ts-simple-type/blob/main/src/com...