I'm considering using TypeScript to write code for a JavaScript project. I've come to appreciate the benefits of TypeScript and am especially interested in using it for our AngularJS 1.5 project, which we plan to migrate soon. As I'm new to the project, I'd like some advice on the advantages and disadvantages of incorporating TypeScript.
Here's my approach:
- Set up a local environment for running TypeScript.
- Take a small feature from the current project and convert it to TypeScript as a starting point.
- Transpile the .ts file into JavaScript and replace the existing feature code with the new transpiled .ts code.
What potential challenges could arise from this?
What are the possible benefits?