Files
tsgo/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns_merging3.js

23 lines
473 B
TypeScript

//// [tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts] ////
//// [types.ts]
declare module "*.foo" {
export interface OhNo { star: string }
}
//// [test.ts]
declare module "a.foo" {
export interface OhNo { a: string }
}
import { OhNo } from "b.foo"
declare let ohno: OhNo;
ohno.a // oh no
//// [types.js]
"use strict";
//// [test.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
ohno.a; // oh no