TypeScript/tests/baselines/reference/constructorTypeWithTypeParameters.js

17 lines
336 B
JavaScript

//// [constructorTypeWithTypeParameters.ts]
declare var X: {
new <T>(): number;
}
declare var Y: {
new (): number;
}
var anotherVar: new <T>() => number;
//// [constructorTypeWithTypeParameters.js]
var anotherVar;
//// [constructorTypeWithTypeParameters.d.ts]
declare var X;
declare var Y;
declare var anotherVar;