TypeScript
Intermediate
Narrowing, type guards, generics and the utility types — where a mid-level interview lives.
What it covers
- type vs interface
- declaration merging
- narrowing
- type guards
- discriminated unions
- assertions
- satisfies
- keyof
- generics
- constraints
- utility types
- classes
Read first
New to this material? 16 of the 16 intermediate topics are written, and each one ends with questions from this same bank.
- type versus interface12 min
- Declaration merging13 min
- Narrowing15 min
- Type guards and predicates14 min
- Discriminated unions16 min
- Type assertions12 min
- The satisfies operator10 min
- keyof and indexed access14 min
- Generics13 min
- Generic constraints13 min
- Generic interfaces and classes14 min
- Classes and access modifiers16 min
- implements and extends15 min
- Utility types14 min
- Assignability and excess properties14 min
- Modules and import type12 min
How many questions?
Questions are drawn at random from the 66 in this level, spread across both its topics and its question formats, so you never get fifteen of the same kind in a row. There is no timer.