mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
39 lines
674 B
TypeScript
39 lines
674 B
TypeScript
//// [tests/cases/conformance/jsdoc/moduleExportsElementAccessAssignment.ts] ////
|
|
|
|
//// [mod1.js]
|
|
exports.a = { x: "x" };
|
|
exports["b"] = { x: "x" };
|
|
exports["default"] = { x: "x" };
|
|
module.exports["c"] = { x: "x" };
|
|
module["exports"]["d"] = {};
|
|
module["exports"]["d"].e = 0;
|
|
|
|
//// [mod2.js]
|
|
const mod1 = require("./mod1");
|
|
mod1.a;
|
|
mod1.b;
|
|
mod1.c;
|
|
mod1.d;
|
|
mod1.d.e;
|
|
mod1.default;
|
|
|
|
|
|
|
|
//// [mod1.d.ts]
|
|
export declare var a: {
|
|
x: string;
|
|
};
|
|
export declare var b: {
|
|
x: string;
|
|
};
|
|
declare const _default: {
|
|
x: string;
|
|
};
|
|
export default _default;
|
|
export declare var c: {
|
|
x: string;
|
|
};
|
|
export declare var d: {};
|
|
//// [mod2.d.ts]
|
|
export {};
|