Hacker News new | ask | show | jobs
by dobs 3742 days ago
Which leaves me wondering why I'd use Typescript over sticking with ES6, especially with tools like Babel making many future features available right now and libraries like React actively making use of them.
3 comments

> especially with tools like Babel making many future features available right now and libraries like React actively making use of them.

You get all of this with Typescript, as well as optional types. If you're writing any Javascript at all, technically you're already writing Typescript.

People told above, think of TS as a strong linter over normal ES6. Static typecheck is often very nice.
You shouldn't. My comment was in regards to readability of typescript vs coffeescript vs es6-javascript. If you don't want the added benefit of type-checking with minimal overhead, don't bother.