You don't have to rewrite a large JavaScript project overnight! Migrate gradually:
- Add
tsconfig.jsonwith"allowJs": true. - Rename one file at a time from
.jsto.ts(starting with utility/type files). - Replace
anywith real interfaces orunknown. - Turn on
"strict": trueonce the core files are converted.
ADVERTISEMENT