Hacker News new | ask | show | jobs
by mercer 3241 days ago
> Not sure that's true anymore with TypeScript.

Excellent point, and one of the less-advertised benefits of using TypeScript.

I tend to use Babel/Webpack in most of my projects, mostly because I have the time to waste on keeping up with the 'bleeding edge' and I kind of enjoy it (in perhaps a slightly masochistic way).

That said, more than once I picked TypeScript for some project not primarily because of its main purpose, but rather because it offered a simple way to transpile 'ESNext' to ES5. Despite the fact that a basic Babel/Webpack setup is second nature to me now, it still feels easier to just use TypeScript to do all of it at once, and get types as part of the deal!

1 comments

Yep and TS makes it trivial to target old JS versions and in 2.4 you can use the type inference on normal JS as well.

Its all a win.