swc/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.ts
2022-02-04 17:08:38 +09:00

16 lines
297 B
TypeScript

//@filename: ambientExternalModuleMerging_use.ts
//@module: amd
import M = require("M");
// Should be strings
var x = M.x;
var y = M.y;
//@filename: ambientExternalModuleMerging_declare.ts
declare module "M" {
export var x: string;
}
// Merge
declare module "M" {
export var y: string;
}