4 ms·
In addition to the suggestions in the sibling comments, I've had good luck with ts-interface-checker/ts-interface-builder . You add a code generation step to yo
by alangpierce 7y ago
In addition to the suggestions in the sibling comments, I've had good luck with ts-interface-checker/ts-interface-builder . You add a code generation step to your build process (rather than ttsc) that generates runtime equivalents of your TS types, and there's a library to perform a runtime check.
https://github.com/gristlabs/ts-interface-checker https://github.com/gristlabs/ts-interface-checker