21 lines
414 B
TypeScript
21 lines
414 B
TypeScript
//// [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: {
|
|
new <T>(): number;
|
|
};
|
|
declare var Y: {
|
|
new (): number;
|
|
};
|
|
declare var anotherVar: new <T>() => number;
|