TypeScript Advanced: Types That Hold Up in Production
This course is for developers maintaining real TypeScript codebases where loose any escapes, brittle type assertions, and slow compiler runs start costing time on every pull request. You work through conditional types, infer, mapped key remapping, template literal types, and variance annotations with concrete API contracts rather than type-level puzzles.
In the second half, you write accurate .d.ts declaration files for untyped JavaScript modules, enforce runtime boundary validation alongside static types, diagnose slow type-checking with compiler traces and project references, and plan incremental strictness migrations across existing repositories without halting feature work.
Course access
-
Types That Compute (empty)3Lessons · 20 min
-
Conditional Types and infer Without Nested Nightmares
Read a conditional type as an if for types, see how it spreads over a union and use infer to take a piece out of a type. After this, you can name each step of a nested type, test it and stop copying type puzzles you cannot read.
10 min -
Template Literal Types for Routes and Event Names
Build string types from parts, rename keys with as and read pieces out of a string with infer, and see where a union grows too large. After this, a mistyped route or event name is a compile error.
5 min -
-
-
Brands and Boundaries (empty)3Lessons · 25 min
-
Branded Types So IDs Don't Mix
Tag a string or a number with a brand, create it in one parse function and see what a brand does not survive. After this, a swapped userId and orderId is an error in the editor, not a bug in production.
10 min -
satisfies and const Assertions When Inference Isn't Enough
Compare an annotation, a cast, satisfies and as const on the same config object. After this, you can check a value against a type and still keep the precise types the compiler worked out.
10 min -
-
-
Declare What JavaScript Didn't (empty)3Lessons · 25 min
-
Writing .d.ts for a Plain JS Module
Write a declaration file by hand for a JavaScript module, start from a generated draft and test that the declaration still matches. After this, a plain JavaScript import gets real types and the JavaScript stays untouched.
10 min -
Ambient Modules and Global Augmentation Without Breaking Everything
Declare modules that are not code, add globals with declare global and augment a module you do not own, and learn why the file must be in the program. After this, you can add a declaration without breaking a file you never touched.
10 min -
-
-
Projects That Scale (empty)3Lessons · 25 min
-
Project References and Solution-Style tsconfig
Split a repository into projects that build in order, with a root config that lists them and builds nothing itself. After this, a change in a library is checked against every project that uses it, and only what changed is rebuilt.
10 min -
typescript-eslint Rules That Catch Real Mistakes
Set up typescript-eslint with type information on TypeScript 7 and turn on four rules that find bugs the compiler allows. After this, you can add a rule to a repository one at a time and know which mistakes it catches.
10 min -
-
-
Migrate and Keep Moving (empty)4Lessons · 35 min
-
Move a JavaScript Folder to TypeScript Without a Big Bang
Convert a folder one file at a time while the build and the tests stay green, starting from the files that import nothing. After this, a migration is a series of small commits that anyone can review.
10 min -
allowJs, checkJs and Leaving JSDoc Behind
See what allowJs and checkJs each do, move JSDoc types into TypeScript syntax and fix the JSDoc habits that TypeScript 7 rejects. After this, you can check JavaScript files on the way to converting them.
10 min -
Keep Build Times Sane: incremental and What Actually Slows tsc
Measure a build with extendedDiagnostics, then try skipLibCheck, a type that costs too much and incremental, with the numbers from a real run. After this, you change a build setting because you measured, not because you guessed.
10 min -
-
-
Final Check: TypeScript Advanced (empty)1Lessons · 15 min
-
About
This course is for developers maintaining real TypeScript codebases where loose any escapes, brittle type assertions, and slow compiler runs start costing time on every pull request. You work through conditional types, infer, mapped key remapping, template literal types, and variance annotations with concrete API contracts rather than type-level puzzles.
In the second half, you write accurate .d.ts declaration files for untyped JavaScript modules, enforce runtime boundary validation alongside static types, diagnose slow type-checking with compiler traces and project references, and plan incremental strictness migrations across existing repositories without halting feature work.
- Responsible
- John G
- Last Update
- 10/12/2026
- Completion Time
- 2 h 25 min
- Members
- 1
Reviews
Sign in to write a reviewComments
Sign in to commentNo comments yet.