News for hackers. Stuff that matters.
Re:Hegel – An advanced static type checker for JavaScript by purplerabbit on Wednesday October 12, 2022 @10:48PM (#33186562)
Seamless runtime checks are fully supported via zod.

https://github.com/colinhacks/zod

You’re welcome.

(I use this library every day. It has changed my life.)

Re:Hegel – An advanced static type checker for JavaScript by ar-nelson on Wednesday October 12, 2022 @11:53PM (#33187021)
In the same vein, shameless plug for my own library, Spartan Schema:

https://github.com/ar-nelson/spartan-schema

It does the same thing as Zod, but is much smaller/simpler and its types always have a JSON representation.