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