TypeScript - Migrating from JavaScript
        
           
        
        
        
        
Gradual migration
  - Start with // @ts-checkin.jsfiles and JSDoc types.
- Convert leaf modules to .tsfirst and enablestrictprogressively.
- Add anypragmatically with TODOs, replace with precise types over time.
JSDoc typing
/** @typedef {{ id: string; name: string }} User */
/** @param {User} u */
function hello(u) { return `Hi ${u.name}` }
tsconfig settings
  - Use skipLibCheckto ease ecosystem issues.
- Consider noPropertyAccessFromIndexSignatureandnoUncheckedIndexedAccesslater.