18 lines
330 B
TypeScript
18 lines
330 B
TypeScript
//// [exportAssignmentWithoutIdentifier1.ts]
|
|
function Greeter() {
|
|
//...
|
|
}
|
|
Greeter.prototype.greet = function () {
|
|
//...
|
|
}
|
|
export = new Greeter();
|
|
|
|
|
|
//// [exportAssignmentWithoutIdentifier1.js]
|
|
function Greeter() {
|
|
//...
|
|
}
|
|
Greeter.prototype.greet = function () {
|
|
//...
|
|
};
|
|
module.exports = new Greeter();
|