Which TypeScript feature allows you to combine multiple types into one?

TypeScript Associate Easy

TypeScript Associate — Easy

Which TypeScript feature allows you to combine multiple types into one?

Key points

  • Union types combine multiple types
  • Type alias creates a new name for an existing type
  • Generics are for creating reusable components
  • Enums define a set of named constants

Ready to go further?

Related questions