mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 03:01:48 +03:00
16 lines
297 B
TypeScript
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;
|
|
} |