3 ms·
I still feel better with thin/no tooling for transpiling, flow types in comments. There’s something nice about no or ultra flat dependencies and instant npm i t
by mirekrusin 8y ago
I still feel better with thin/no tooling for transpiling, flow types in comments. There’s something nice about no or ultra flat dependencies and instant npm i that keeps me there.
- nevir 8y agoTypescript also supports type checking pure JS files, as well as type annotations via JSDoc comments, if you don't want to transpile.
- mifreewil 8y agohttps://github.com/Microsoft/TypeScript/wiki/Type-Checking-JavaScript-Files https://github.com/Microsoft/TypeScript/wiki/Type-Checking-J...
- deleted 8y ago[deleted]
- mLuby 8y ago100%! Whatever happened to progressive enhancement?
- munchbunny 8y agoIt's a design trade-off. TypeScript is close enough to JavaScript but adding the compiler step actually enables worthwhile changes to improve code safety. And Typescript can import JavaScript modules anyway, so really you just lose the ability to write both in the same file.
- lisowski 8y agoIf you use VSCode just put `// @ts-check` at the top of your files. I find a bunch of bugs with just that.
- h1d 8y agoI like how TS also enables future JS features by transpilation. async / await was great to have quite early on.