Question · JavaScript and TypeScript course · Module 6: TypeScript Basics

Extending Multiple Interfaces

Can an interface in TypeScript extend multiple interfaces at the same time?

Answer options

  • Yes, but only if the interfaces have no common properties
  • No, an interface can only extend one interface
  • Yes, but it requires using an intersection type instead of extends
  • Yes, using the syntax: interface C extends A, B { }

You can check the correct answer by solving this task in the CodeWorlds game.