26 lines
429 B
TypeScript
26 lines
429 B
TypeScript
|
//// [es5ModuleWithModuleGenAmd.ts]
|
||
|
export class A
|
||
|
{
|
||
|
constructor ()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public B()
|
||
|
{
|
||
|
return 42;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [es5ModuleWithModuleGenAmd.js]
|
||
|
define(["require", "exports"], function (require, exports) {
|
||
|
var A = (function () {
|
||
|
function A() {
|
||
|
}
|
||
|
A.prototype.B = function () {
|
||
|
return 42;
|
||
|
};
|
||
|
return A;
|
||
|
})();
|
||
|
exports.A = A;
|
||
|
});
|