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