2 ms·
There are things like io-ts that do exactly this: http://github.com/gcanti/io-ts http://github.com/gcanti/io-ts
by andy_ppp 7y ago
There are things like io-ts that do exactly this: http://github.com/gcanti/io-ts http://github.com/gcanti/io-ts
- moltar 7y agoYup plus see other projects in the same vein: https://github.com/moltar/typescript-runtime-type-benchmarks https://github.com/moltar/typescript-runtime-type-benchmarks