Manuals / TypeScript / Chapter 9
D · Integration · advanced · Week 5 · Chapter 9 of 11
Migration strategy
Migrate incrementally — never big-bang rewrite. allowJs + checkJs → rename leaves → tighten strict → delete any. JavaScript consumes TypeScript; TypeScript compiles to JS. Keep shipping throughout.
Path progress75%
Step 1 of 5
Enable allowJs
tsconfig: allowJs: true, checkJs: true (optional). .ts and .js coexist. TypeScript checks JSDoc-annotated JS.
Do this now
Add allowJs to tsconfig. Run typecheck — note JS + TS errors together.
Was this step clear?
Chapter learning outcomes
- allowJs / checkJs
- Rename order (leaves first)
- JSDoc migration path
- Incremental strict
- Team rollout
Clear these before you leave
Side quest
Migration sprint
Complete migration steps 1–3 this week. All utils, types, api in .ts. typecheck green.