News for hackers. Stuff that matters.
Re:How porting to TypeScript solved our API woes by andy_ppp on Wednesday April 08, 2020 @05:18PM (#22817272)
There are things like io-ts that do exactly this: http://github.com/gcanti/io-ts
Re:How porting to TypeScript solved our API woes by moltar on Wednesday April 08, 2020 @08:20PM (#22818613)
Yup plus see other projects in the same vein:

https://github.com/moltar/typescript-runtime-type-benchmarks