Code QuizIntermediate

Extends vs Intersection

Find the incorrect way a type alias tries to extend another.

Codetypescript
type Animal = { name: string };

type Dog extends Animal {
  breed: string;
}

What is the bug in this type alias declaration?