4 ms·
If you compile your code with TypeScript and set allowJs=true, you’ll get a lot of checking for free with no changes at all to your existing JS code. TS will ca
by bcherny 7y ago
If you compile your code with TypeScript and set allowJs=true, you’ll get a lot of checking for free with no changes at all to your existing JS code. TS will catch things like dead code, missing return statements, type mismatches and so on for free.
- baybal2 7y agoIt will be nice if the use case of TS only being used as a static checker be supported better, but then there will be no point in TS as a language