Apparently, I was wrong! And boy am I glad about that!
And that’s where TypeScript shines! So I decided to migrate our existing codebase to TypeScript. Although it seemed daunting at first, but TypeScript allows you to take baby steps. Here is the steps that we followed:
- Rename all the existing files from
- Change all the classes (we used inheritance the way suggested by John Resig) to actual TypeScript classes
- Change call the anonymous function to lambda
- Start decorating every variables and functions with types
Now, these four steps worked like magic for us! Just the first step was able to comb out so many issues in our code! And by the time we finished up with step four, the IDE was our friend again!