13 lines
362 B
TypeScript
13 lines
362 B
TypeScript
//// [derivedInterfaceDoesNotHideBaseSignatures.ts]
|
|
// Derived interfaces no longer hide signatures from base types, so these signatures are always compatible.
|
|
interface Base {
|
|
(): string;
|
|
new (x: string): number;
|
|
}
|
|
|
|
interface Derived extends Base {
|
|
(): number;
|
|
new (x: string): string;
|
|
}
|
|
|
|
//// [derivedInterfaceDoesNotHideBaseSignatures.js]
|