Skip to content
0/8

TypeScript Intermediate: Generics and Utility Types

Type Guards and Discriminated Unions

In this lesson you will

  • Model alternatives with a discriminated union
  • Write exhaustive switch statements with never
  • Write a custom type guard and validate unknown data