4 ms·
Some significant and useful additions to the type system. I'm very happy with how TypeScript is progressing along. Wondering how things are going with Flow.
by huy-nguyen 9y ago
Some significant and useful additions to the type system. I'm very happy with how TypeScript is progressing along. Wondering how things are going with Flow.
- tracker1 9y agoAs a follower, it seems like TypeScripts typing system is quite a bit more popular... I know there's a typescript preset for babel, and am passively interested in seeing where that goes. TBH though, I don't really see that TypeScript has many advantages over JS. Though some of this generic syntax seems easier than duck type testing in JS.
- realharo 9y ago>I know there's a typescript preset for babel, and am passively interested in seeing where that goes. That's probably going to be less popular, because with TypeScript, you often don't need Babel at all (you can transpile directly to ES5, JSX works out of the box, etc.).
- huy-nguyen 9y agoI think there's room for babel and typescript to co-exist. In fact, I use typescript purely as a type checker (by setting `jsx` to `preserve`, `target` to `esnext` and `moduel` to `esnext`). As a transpiler, babel is just a lot more configurable and updates much more frequently than typescript.
- tracker1 9y agoThere's plenty of stuff that gets into babel first, long before TypeScript considers it, if ever. async functions for starters, and everything not yet in env, for the most part. I'd rather see typescript as a set of babel presets than deal with what it doesn't have in the box.