mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
50 lines
797 B
TypeScript
50 lines
797 B
TypeScript
//// [tests/cases/conformance/jsdoc/declarations/jsDeclarationsExportAssignmentExpressionPlusSecondary.ts] ////
|
|
|
|
//// [index.js]
|
|
const Strings = {
|
|
a: "A",
|
|
b: "B"
|
|
};
|
|
module.exports = {
|
|
thing: "ok",
|
|
also: "ok",
|
|
desc: {
|
|
item: "ok"
|
|
}
|
|
};
|
|
module.exports.Strings = Strings;
|
|
|
|
|
|
//// [index.js]
|
|
"use strict";
|
|
const Strings = {
|
|
a: "A",
|
|
b: "B"
|
|
};
|
|
module.exports = {
|
|
thing: "ok",
|
|
also: "ok",
|
|
desc: {
|
|
item: "ok"
|
|
}
|
|
};
|
|
module.exports.Strings = Strings;
|
|
|
|
|
|
//// [index.d.ts]
|
|
declare const _exports: {
|
|
thing: string;
|
|
also: string;
|
|
desc: {
|
|
item: string;
|
|
};
|
|
};
|
|
export = _exports;
|
|
declare namespace _exports {
|
|
export { Strings };
|
|
}
|
|
declare const Strings: {
|
|
a: string;
|
|
b: string;
|
|
};
|