TypeScript/tests/baselines/reference/constructorTypeWithTypeParameters.js

18 lines
336 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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;