|
| 1 | +//// [tests/cases/compiler/declarationEmitAlternativeContainingModules.ts] //// |
| 2 | + |
| 3 | +=== /node_modules/shapes/internal.d.ts === |
| 4 | +export interface Shape { |
| 5 | +>Shape : Symbol(Shape, Decl(internal.d.ts, 0, 0)) |
| 6 | + |
| 7 | + kind: string; |
| 8 | +>kind : Symbol(Shape.kind, Decl(internal.d.ts, 0, 24)) |
| 9 | +} |
| 10 | +export declare function makeShape(): Shape; |
| 11 | +>makeShape : Symbol(makeShape, Decl(internal.d.ts, 2, 1)) |
| 12 | +>Shape : Symbol(Shape, Decl(internal.d.ts, 0, 0)) |
| 13 | + |
| 14 | +=== /node_modules/shapes/index.d.ts === |
| 15 | +export { makeShape } from "./internal"; |
| 16 | +>makeShape : Symbol(makeShape, Decl(index.d.ts, 0, 8)) |
| 17 | + |
| 18 | +export type { Shape } from "./internal"; |
| 19 | +>Shape : Symbol(Shape, Decl(index.d.ts, 1, 13)) |
| 20 | + |
| 21 | +=== /node_modules/shapes/aliased.d.ts === |
| 22 | +export { Shape as RenamedShape } from "./internal"; |
| 23 | +>Shape : Symbol(Shape, Decl(internal.d.ts, 0, 0)) |
| 24 | +>RenamedShape : Symbol(RenamedShape, Decl(aliased.d.ts, 0, 8)) |
| 25 | + |
| 26 | +=== /node_modules/legacy/index.d.ts === |
| 27 | +declare namespace legacy { |
| 28 | +>legacy : Symbol(legacy, Decl(index.d.ts, 4, 1), Decl(index.d.ts, 0, 0)) |
| 29 | + |
| 30 | + interface Options { |
| 31 | +>Options : Symbol(Options, Decl(index.d.ts, 0, 26)) |
| 32 | + |
| 33 | + verbose: boolean; |
| 34 | +>verbose : Symbol(Options.verbose, Decl(index.d.ts, 1, 23)) |
| 35 | + } |
| 36 | +} |
| 37 | +declare function legacy(): legacy.Options; |
| 38 | +>legacy : Symbol(legacy, Decl(index.d.ts, 4, 1), Decl(index.d.ts, 0, 0)) |
| 39 | +>legacy : Symbol(legacy, Decl(index.d.ts, 4, 1), Decl(index.d.ts, 0, 0)) |
| 40 | +>Options : Symbol(legacy.Options, Decl(index.d.ts, 0, 26)) |
| 41 | + |
| 42 | +export = legacy; |
| 43 | +>legacy : Symbol(legacy, Decl(index.d.ts, 4, 1), Decl(index.d.ts, 0, 0)) |
| 44 | + |
| 45 | +=== /node_modules/factory/index.d.ts === |
| 46 | +import legacy = require("legacy"); |
| 47 | +>legacy : Symbol(legacy, Decl(index.d.ts, 0, 0)) |
| 48 | + |
| 49 | +export { makeShape as create } from "shapes/internal"; |
| 50 | +>makeShape : Symbol(makeShape, Decl(internal.d.ts, 2, 1)) |
| 51 | +>create : Symbol(create, Decl(index.d.ts, 1, 8)) |
| 52 | + |
| 53 | +export declare function makeLegacy(): legacy.Options; |
| 54 | +>makeLegacy : Symbol(makeLegacy, Decl(index.d.ts, 1, 54)) |
| 55 | +>legacy : Symbol(legacy, Decl(index.d.ts, 0, 0)) |
| 56 | +>Options : Symbol(legacy.Options, Decl(index.d.ts, 0, 26)) |
| 57 | + |
| 58 | +=== /index.ts === |
| 59 | +import { create, makeLegacy } from "factory"; |
| 60 | +>create : Symbol(create, Decl(index.ts, 0, 8)) |
| 61 | +>makeLegacy : Symbol(makeLegacy, Decl(index.ts, 0, 16)) |
| 62 | + |
| 63 | +export const shape = create(); |
| 64 | +>shape : Symbol(shape, Decl(index.ts, 1, 12)) |
| 65 | +>create : Symbol(create, Decl(index.ts, 0, 8)) |
| 66 | + |
| 67 | +export const shapes = [create(), create()]; |
| 68 | +>shapes : Symbol(shapes, Decl(index.ts, 2, 12)) |
| 69 | +>create : Symbol(create, Decl(index.ts, 0, 8)) |
| 70 | +>create : Symbol(create, Decl(index.ts, 0, 8)) |
| 71 | + |
| 72 | +export const options = makeLegacy(); |
| 73 | +>options : Symbol(options, Decl(index.ts, 3, 12)) |
| 74 | +>makeLegacy : Symbol(makeLegacy, Decl(index.ts, 0, 16)) |
| 75 | + |
0 commit comments