TypeScript in real projects · mid
tsconfig, strict mode, declaration files and TypeScript 7
strict turns on the checks that catch real bugs (strictNullChecks, noImplicitAny and more); .d.ts files describe JS libraries; and TypeScript 7 (July 2026) is the native Go compiler, about 10x faster, with strict on by default.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- strict includes strictNullChecks (null is not assignable to everything), noImplicitAny, strictFunctionTypes and useUnknownInCatchVariables. Add noUncheckedIndexedAccess for safer arrays and records.
- Declaration files (.d.ts) give types to JS.
declare module 'x'and module augmentation add types to a library (e.g. extending a theme type). - Migrating JS to TS: allowJs + checkJs, convert leaf files first, turn on strict flags step by step.
- TypeScript 7.0 (Jul 2026) is the Go port: about 10x faster builds, strict by default, target es5 and baseUrl are errors, no programmatic API until 7.1. TypeScript 6.0 was the last JS-based release.
- Node can run .ts files by stripping types; that only works with erasable syntax (no enums, namespaces or parameter properties).
The red pen
Common traps: mistake → fix
Mistake: "TypeScript 7 changes the language"
Fix: it is mainly a faster compiler with stricter defaults; your types mostly stay the same.
Mistake: "strict is optional polish"
Fix: without strictNullChecks most null bugs are invisible.
Easy to hard
Questions interviewers ask, easy to hard
- Which tsconfig flags do you always turn on and why?
- How would you migrate a large JS codebase?
- What changed in TypeScript 7?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.