Files
tsgo/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols

26 lines
924 B
Plaintext

//// [tests/cases/conformance/node/legacyNodeModulesExportsSpecifierGenerationConditions.ts] ////
=== index.ts ===
export const a = async () => (await import("inner")).x();
>a : Symbol(a, Decl(index.ts, 0, 12))
>(await import("inner")).x : Symbol(x, Decl(index.d.ts, 0, 8))
>"inner" : Symbol("inner", Decl(index.d.ts, 0, 0))
>x : Symbol(x, Decl(index.d.ts, 0, 8))
=== node_modules/inner/index.d.ts ===
export { x } from "./other.js";
>x : Symbol(x, Decl(index.d.ts, 0, 8))
=== node_modules/inner/other.d.ts ===
import { Thing } from "./private.js"
>Thing : Symbol(Thing, Decl(other.d.ts, 0, 8))
export const x: () => Thing;
>x : Symbol(x, Decl(other.d.ts, 1, 12))
>Thing : Symbol(Thing, Decl(other.d.ts, 0, 8))
=== node_modules/inner/private.d.ts ===
export interface Thing {} // not exported in export map, inaccessible under new module modes
>Thing : Symbol(Thing, Decl(private.d.ts, 0, 0))