28 lines
509 B
Text
28 lines
509 B
Text
=== tests/cases/conformance/ambient/ambientExternalModuleMerging_use.ts ===
|
|
import M = require("M");
|
|
>M : typeof M
|
|
|
|
// Should be strings
|
|
var x = M.x;
|
|
>x : string
|
|
>M.x : string
|
|
>M : typeof M
|
|
>x : string
|
|
|
|
var y = M.y;
|
|
>y : string
|
|
>M.y : string
|
|
>M : typeof M
|
|
>y : string
|
|
|
|
=== tests/cases/conformance/ambient/ambientExternalModuleMerging_declare.ts ===
|
|
declare module "M" {
|
|
export var x: string;
|
|
>x : string
|
|
}
|
|
|
|
// Merge
|
|
declare module "M" {
|
|
export var y: string;
|
|
>y : string
|
|
}
|