TypeScript/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.js

25 lines
571 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [declFileClassWithStaticMethodReturningConstructor.ts]
export class Enhancement {
public static getType() {
return this;
}
}
//// [declFileClassWithStaticMethodReturningConstructor.js]
var Enhancement = (function () {
function Enhancement() {
}
Enhancement.getType = function () {
return this;
};
return Enhancement;
})();
exports.Enhancement = Enhancement;
//// [declFileClassWithStaticMethodReturningConstructor.d.ts]
export declare class Enhancement {
2014-07-12 01:36:06 +02:00
static getType(): typeof Enhancement;
2014-07-13 01:04:16 +02:00
}