19 lines
313 B
JavaScript
19 lines
313 B
JavaScript
|
//// [exportAssignmentWithoutIdentifier1.ts]
|
||
|
function Greeter() {
|
||
|
//...
|
||
|
}
|
||
|
Greeter.prototype.greet = function () {
|
||
|
//...
|
||
|
}
|
||
|
export = new Greeter();
|
||
|
|
||
|
|
||
|
//// [exportAssignmentWithoutIdentifier1.js]
|
||
|
function Greeter() {
|
||
|
//...
|
||
|
}
|
||
|
Greeter.prototype.greet = function () {
|
||
|
//...
|
||
|
};
|
||
|
new Greeter();
|