I am working on pretty big existing web application with team. Time to time we experience common JavaScript coding nuances like case difference while function calling or missing operator etc.
I find TypeScript promising solution for such issues specially while working with team on different files/modules. It has many benefits like
- Static code analysis
- Better auto-completion
- Code Minification
- Dead Code Reduction
- String Type Checking
- Strict OOP
I know there are converters available which can convert JavaScript to typescript but I do not want to convert existing project files to TypeScript.
I was wondering if it is possible to keep existing code as is and develop new modules/files in TypeScript. May be we can migrate existing files in gradual manner.
Will they work well together? How to do it?
I have tried to read online but couldn't find much relevant information other than converting existing projects to TypeScript.