24 lines
351 B
TypeScript
24 lines
351 B
TypeScript
//// [es5ModuleWithModuleGenCommonjs.ts]
|
|
export class A
|
|
{
|
|
constructor ()
|
|
{
|
|
}
|
|
|
|
public B()
|
|
{
|
|
return 42;
|
|
}
|
|
}
|
|
|
|
//// [es5ModuleWithModuleGenCommonjs.js]
|
|
"use strict";
|
|
var A = (function () {
|
|
function A() {
|
|
}
|
|
A.prototype.B = function () {
|
|
return 42;
|
|
};
|
|
return A;
|
|
}());
|
|
exports.A = A;
|