Files
tsgo/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportDoubleAssignmentInClosure.js

36 lines
875 B
TypeScript

//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportDoubleAssignmentInClosure.ts] ////
//// [index.js]
// @ts-nocheck
function foo() {
module.exports = exports = function (o) {
return (o == null) ? create(base) : defineProperties(Object(o), descriptors);
};
const m = function () {
// I have no idea what to put here
}
exports.methods = m;
}
//// [index.js]
"use strict";
// @ts-nocheck
function foo() {
module.exports = exports = function (o) {
return (o == null) ? create(base) : defineProperties(Object(o), descriptors);
};
const m = function () {
// I have no idea what to put here
};
exports.methods = m;
}
//// [index.d.ts]
export = _exports;
declare function _exports(o: any): any;
declare namespace _exports {
export var methods: () => void;
}