ProgrammingAdvancedplusloading…

TypeScript Advanced Types

Deepen your TypeScript expertise by mastering advanced type system features. This course explores union and intersection types, type guards, discriminated unions, mapped types, conditional types, template literal types, and the infer keyword. Build safer, expressive code with robust typing techniques.

TypeScript Mastery · stage 5 of 6
  1. TypeScript Basics
  2. TypeScript Functions and Arrays
  3. TypeScript Interfaces and Classes
  4. TypeScript Generics
  5. TypeScript Advanced Types← you are here
  6. TypeScript in Practice
31 hr 20 min
duration
47
lessons
7
modules
94
problems
7 modules · 47 lessons · 94 problems
01
Mastering Union and Intersection Types
Explore how union and intersection types create flexible, composable type structures.
4 hrAdvanced6 lessons
Type Guards for Runtime Safety
Learn to implement custom type guards for reliable type narrowing at runtime.
3 hr 20 minAdvanced5 lessons
Discriminated Unions: Pattern Matching in TypeScript
Discover discriminated unions to model precise variant types with shared tags.
5 hr 20 minAdvanced8 lessons
Mapped Types for Dynamic Type Transformation
Harness mapped types to create new types by iterating over keys from existing types.
4 hr 40 minAdvanced7 lessons
Conditional Types: Branching in the Type System
Use conditional types to express type-level logic and conditional inference.
4 hr 40 minAdvanced7 lessons
Template Literal Types: String Manipulation in Types
Apply template literal types for expressive string-based type construction and validation.
4 hrAdvanced6 lessons
Advanced Inference with the Infer Keyword
Leverage the infer keyword for extracting types in complex conditional scenarios.
5 hr 20 minAdvanced8 lessons
content breakdown
47 lessons100%
94 problems67%
prerequisites
  • Basic TypeScript syntax
  • Understanding of generics
  • Familiarity with interfaces and types
about this course

Deepen your TypeScript expertise by mastering advanced type system features. This course explores union and intersection types, type guards, discriminated unions, mapped types, conditional types, template literal types, and the infer keyword. Build safer, expressive code with robust typing techniques.