TypeScript/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js
2015-12-08 17:51:10 -08:00

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;