Skip to content

Module 07: Advanced TypeScript

The advanced TypeScript type system: utility types, conditional types, mapped types, template literal types, declaration files, and module augmentation.

This module is planned. Full content coming soon.

Prerequisites

  • Module 06: TypeScript Fundamentals

What You'll Learn

  • Built-in utility types: Partial, Required, Readonly, Record, Pick, Omit, Exclude, Extract, NonNullable, ReturnType, Parameters, ConstructorParameters
  • Conditional types: T extends U ? X : Y, infer, distributing conditional types
  • Mapped types: { [K in keyof T]: ... }, key remapping with as, +/- modifiers
  • Template literal types: building string union types from type-level string manipulation
  • Declaration files (.d.ts): how to write them, when they are needed, using @types/* packages
  • Module augmentation: extending third-party types, global type augmentation