swc/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDoubleAssignmentInClosure.ts

16 lines
374 B
TypeScript

// @allowJs: true
// @checkJs: true
// @outDir: ./out
// @declaration: true
// @filename: 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;
}