Which of the following is TRUE about TypeScript interfaces vs type aliases?

TypeScript Associate Easy

TypeScript Associate — Easy

Which of the following is TRUE about TypeScript interfaces vs type aliases?

Key points

  • Interfaces can be extended for inheritance
  • Type aliases lack the ability to be extended
  • This difference impacts the flexibility of defining new types

Ready to go further?

Related questions