15 lines
287 B
TypeScript
15 lines
287 B
TypeScript
//// [interfaceWithCallSignaturesThatHidesBaseSignature.ts]
|
|
interface Foo {
|
|
(): { a: number };
|
|
}
|
|
|
|
interface Derived extends Foo {
|
|
(): { a: number; b: number };
|
|
}
|
|
|
|
var d: Derived;
|
|
var r = d();
|
|
|
|
//// [interfaceWithCallSignaturesThatHidesBaseSignature.js]
|
|
var d;
|
|
var r = d();
|