3 ms·
TypeScript but no JavaScript is a tiny bit disappointing. I still like to be able to work on front-end code without needing to run separate build tooling.
by simonw 2y ago
TypeScript but no JavaScript is a tiny bit disappointing. I still like to be able to work on front-end code without needing to run separate build tooling.
- creatonez 2y agoThis tool can convert to JSON Schema, so it can be used with validator libraries. Either way, validation and static duck typing based on schema are two separate concerns, and the latter is impossible without something like a Typescript compiler (or checker if using jsdoc-style Typescript).
- IshKebab 2y agoIt can actually generate the JavaScript type definitions for all possible inputs at once! Here, I'll copy and paste the result for you: Hope that helps.