42 lines
820 B
TypeScript
42 lines
820 B
TypeScript
//// [es5-umd2.ts]
|
|
|
|
export class A
|
|
{
|
|
constructor ()
|
|
{
|
|
|
|
}
|
|
|
|
public B()
|
|
{
|
|
return 42;
|
|
}
|
|
}
|
|
|
|
|
|
//// [es5-umd2.js]
|
|
(function (deps, factory) {
|
|
if (typeof module === 'object' && typeof module.exports === 'object') {
|
|
var v = factory(require, exports); if (v !== undefined) module.exports = v;
|
|
}
|
|
else if (typeof define === 'function' && define.amd) {
|
|
define(deps, factory);
|
|
}
|
|
})(["require", "exports"], function (require, exports) {
|
|
var A = (function () {
|
|
function A() {
|
|
}
|
|
A.prototype.B = function () {
|
|
return 42;
|
|
};
|
|
return A;
|
|
})();
|
|
exports.A = A;
|
|
});
|
|
//# sourceMappingURL=es5-umd2.js.map
|
|
|
|
//// [es5-umd2.d.ts]
|
|
export declare class A {
|
|
constructor();
|
|
B(): number;
|
|
}
|