can interface be extends typescript code example
Example: typescript extend interface
//declare interface to be extended
interface Vehicle {
brand: string;
plateNumber: number;
}
interface Car extends Vehicle {}
//declare interface to be extended
interface Vehicle {
brand: string;
plateNumber: number;
}
interface Car extends Vehicle {}