1//declare interface to be extended
2interface Vehicle {
3 brand: string;
4 plateNumber: number;
5}
6
7interface Car extends Vehicle {}
1interface Animal {
2 name: string
3}
4interface Bear extends Animal {
5 honey: boolean
6}
7const bear = getBear()
8bear.name
9bear.honey
10