Files
tsgo/testdata/tests/cases/compiler/patternAmbientModuleAugmentationMergedSymbol.ts

32 lines
576 B
TypeScript

// @strict: true
// @module: preserve
// @moduleResolution: bundler
// @noEmit: true
// @filename: /a.d.ts
declare module "*.asset" {
export const fromA: "a";
}
// @filename: /b.d.ts
declare module "*.asset" {
export const fromB: "b";
}
// @filename: /augmentation.ts
export {};
declare module "augmented.asset" {
export const augmented: "augmented";
}
// @filename: /index.ts
import * as augmented from "augmented.asset";
augmented.fromA;
augmented.fromB;
augmented.augmented;
import * as other from "other.asset";
other.fromA;
other.fromB;
other.augmented;