//declare interface to be extended
interface Vehicle {
brand: string;
plateNumber: number;
}
interface Car extends Vehicle {}
interface Animal {
name: string
}
interface Bear extends Animal {
honey: boolean
}
const bear = getBear()
bear.name
bear.honey
interface Animal {
name: string
}
interface Bear extends Animal {
honey: boolean
}
const bear = getBear()
bear.name
bear.honey