TypeScript/tests/baselines/reference/declFileClassWithStaticMethodReturningConstructor.js
2014-07-15 13:08:10 -07:00

25 lines
571 B
JavaScript

//// [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 {
static getType(): typeof Enhancement;
}