TypeScript tutorialLesson 38Free preview
TS Migration
This lesson is part of TypeScript · All levels
Summary
The migration from JavaScript to TypeScript should be done in stages, starting with a new module or library core. The allowJs option allows the mixing of .js and .ts files during the transition process. After the type of bearing, the refactor becomes much safer as the compiler captures the change.
Key points
- Migration is done in stages, not at once
- AllowJs allows a mix of .js and .ts
- @types or.d.ts linking old library
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.