All learning paths
Path 03 of 7

TypeScript Type Gymnastics

Mapped, conditional and recursive types you can verify with tsc

  • keyof, typeof & indexed access
  • Generics & constraints
  • Mapped types
  • Conditional types & infer
  • Template literal types
  • Recursive types
  • Narrowing & discriminated unions
  • Type-safe event emitters
  1. 01Implement Pick<T, K>easy · coding · ~6 min
  2. 02Implement Nullable<T>easy · coding · ~6 min
  3. 03Implement DeepReadonly<T>medium · coding · ~12 min
  4. 04Extract Function Arguments with infermedium · coding · ~10 min
  5. 05Build a Type-Safe Event Emitterhard · coding · ~25 min

5 of a target 12–15 challenges are available.