11 lines
198 B
TypeScript
11 lines
198 B
TypeScript
//// [genericConstructSignatureInInterface.ts]
|
|
interface C {
|
|
new <T>(x: T);
|
|
}
|
|
|
|
var v: C;
|
|
var r = new v<number>(1);
|
|
|
|
//// [genericConstructSignatureInInterface.js]
|
|
var v;
|
|
var r = new v(1);
|