3 ms·
I like this approach of using the Typescript compiler API to produce the runtime type validator from the TS type, instead of the other way around! I started wor
by jitl 4y ago
I like this approach of using the Typescript compiler API to produce the runtime type validator from the TS type, instead of the other way around! I started working on a toolkit to compile Typescript types to arbitrary downstream languages like Protobuf and Python/MyPy, but the last 20% of polish eludes me. My work is here: https://www.npmjs.com/package/@jitl/ts-simple-type https://www.npmjs.com/package/@jitl/ts-simple-type