Hacker News new | ask | show | jobs
by chimeracoder 3896 days ago
The biggest advantage of TypeScript is that the output is unminified Javascript that closely resembles the input. In fact, you could show someone the output and convince them that you wrote the Javascript manually (rather than generating it from the TypeScript).

This makes it really easy to interop with existing Javascript code, but it also makes it really easy for non-Typescript developers to pick up.

For me, learning Typescript was pretty quick, because valid Javascript is already valid Typescript. All I had to do was remember the syntax for (optional) type annotations.

Learning ES6 was actually the bigger hurdle, not Typescript.