So if the project is small, this might be an unnecessary overhead. But what if your project grows over time ?
Do I have to pay for it ?
TypeScript is completely free and open source.
I have an existing application. If I want to migrate to typescript, Do I have to rewrite ?
So I have to learn a all new language again ?
Not Really! TypeScript is getting aligned very close to ES6 and ES7 syntax. So if you learn typescript syntax you are also learning ES6 and ES7. Concepts like class, contructor, arrow function and decorators are similar in ES6 and ES7.
Is Angular 2 supports TypeScript out of the box ?
Yes. Angular 2 will be shipping with TypeScript support. TypeScript team and Angular Team are working together to improve TypeScript and that’s very interesting.
What are the editors support TS?
- VS Code
- Visual Studio
I’m using an existing library which is not written in TS. Now how can I use that library ?
TS has a concept of Type Definition files. The libraries which are not written in TS can provide a Type Definition file which can be referenced in your TS code and you can continue using the non TypeScript library without worries.
Checkout the definition file repository here.