25 lines
571 B
JavaScript
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;
|
|
}
|