4 ms·
TypeScript already supports writing type defs as comments in JS files. You get the static checking benefits of TypeScript and can run your code in a browser. I
by smt88 7y ago
TypeScript already supports writing type defs as comments in JS files. You get the static checking benefits of TypeScript and can run your code in a browser.
It also has enum support. If someone wants to add enums to EcmaScript, it has nothing to do with TypeScript or their team.
- hoten 7y agoyup, via JSDoc.