2 ms·
What I did was to explain the advantages and disadvantages of Typescript, and document the production issues that could have been detected at the compilation ti
by speedgoose 5y ago
What I did was to explain the advantages and disadvantages of Typescript, and document the production issues that could have been detected at the compilation time.
But the most effective for my team perhaps was enabling the checkJs option in Visual Studio Code (javascript.implicitProjectConfig.checkJs). It enables type checking on JavaScript files using The typescript compiler. Even though the files are not typescript and you don’t have a typescript project, it does find a lot of issues. The developers started to use this feature more using type annotations in JavaScript using JSDoc comments. At this point the migration to typescript was approved by everyone.