Question · JavaScript and TypeScript course · Module 6: TypeScript Basics
Interface vs Type Alias
Which of the following features is unique to interfaces in TypeScript and NOT available for type aliases?
Answer options
- The ability to define object types
- Automatic declaration merging - declaring the same interface multiple times merges them into one
- The ability to use with generics
- Defining function types
You can check the correct answer by solving this task in the CodeWorlds game.