Question bank
TypeScript question bank
Generics, narrowing, and the type-level questions.
Difficulty mix 36 questions · 6 categories
- Easy 1 3%
- Medium 24 67%
- Hard 11 31%
Pick a category and work it top to bottom. Your progress is remembered per category, in this browser. Read the TypeScript guide →
-
Basics & the Type System
-
Interfaces, Unions & Objects
-
Narrowing & Guards
-
Generics
-
Utility & Mapped Types
-
TypeScript in Practice
Where to go next
📚 Learn & practice
Prompts get you drilling; these get you learning. Hand-picked, canonical sources — read the concept, then go deep.
Read
- TypeScript Handbook typescriptlang.org
The official, complete reference.
- Total TypeScript — free tutorials totaltypescript.com
Matt Pocock's exercises on inference & generics.
- Type-Level TypeScript type-level-typescript.com
Conditional & mapped types, taught as a language.
- TypeScript Deep Dive basarat.gitbook.io
A thorough community book, free online.
Practice
- type-challenges github.com
Type-level puzzles from easy to fiendish.
- TypeScript Playground typescriptlang.org
Prototype types and see inference live.