14 lines
239 B
TypeScript
14 lines
239 B
TypeScript
//// [interfaceWithCallAndConstructSignature.ts]
|
|
interface Foo {
|
|
(): number;
|
|
new (): any;
|
|
}
|
|
|
|
var f: Foo;
|
|
var r = f();
|
|
var r2 = new f();
|
|
|
|
//// [interfaceWithCallAndConstructSignature.js]
|
|
var f;
|
|
var r = f();
|
|
var r2 = new f();
|