TypeScript/tests/baselines/reference/constructorTypeWithTypeParameters.js

22 lines
414 B
TypeScript
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]
2014-11-11 00:39:01 +01:00
declare var X: {
new <T>(): number;
};
declare var Y: {
new (): number;
};
2014-07-12 01:36:06 +02:00
declare var anotherVar: new <T>() => number;