Files
tsgo/testdata/baselines/reference/submodule/conformance/jsDeclarationsExportAssignmentExpressionPlusSecondary(target=es2015).js

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;
};