I am wondering about using TypeScript as a way to write my code for a project that is written purely in JavaScript. The benefits that comes from using TypeScript has grown on me significantly. For now the project is a AngularJS 1.5 project that will be migrated into the near future. I would like just some advise since I am joining the project and wanted to know the pros and cons of doing such a thing.
To help you understand my approach I will list below:
- Build a local environment that allows me to run TypeScript locally.
- Convert a small feature from the existing project into TypeScript and use a base.
- Transpile the .ts file into JavaScript and then replace the feature code with the new .ts code transpiled into JavaScript.
What would be problematic about this?
What would be beneficial?