mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
419 B
TypeScript
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();
|