mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +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;
|
|
} |