Files
tsgo/testdata/baselines/reference/submodule/compiler/exportAssignmentWithoutIdentifier1.js

22 lines
419 B
TypeScript

//// [tests/cases/compiler/exportAssignmentWithoutIdentifier1.ts] ////
//// [exportAssignmentWithoutIdentifier1.ts]
function Greeter() {
//...
}
Greeter.prototype.greet = function () {
//...
}
export = new Greeter();
//// [exportAssignmentWithoutIdentifier1.js]
"use strict";
function Greeter() {
//...
}
Greeter.prototype.greet = function () {
//...
};
module.exports = new Greeter();