typescript extends 2 classes code example
Example: typescript extends multiple types
interface You {
name: string;
value: number;
}
interface FooYou {
name: 'foo';
}
interface ConcreteFooYou extends You, FooYou {
concrete: boolean;
}
interface You {
name: string;
value: number;
}
interface FooYou {
name: 'foo';
}
interface ConcreteFooYou extends You, FooYou {
concrete: boolean;
}