TypeScript | Object Types and Interfaces in TypeScript | Question10

Last Updated :
Discuss
Comments

Why might you prefer a type alias over an interface for certain definitions?

Type aliases allow merging declarations.

Type aliases can represent union and intersection types.

Type aliases are faster to compile than interfaces.

Type aliases enforce stricter type safety.

Share your thoughts in the comments