TypeScript/tests/cases/conformance/ambient/ambientDeclarationsPatterns_merging3.ts

13 lines
260 B
TypeScript
Raw Normal View History

2019-04-24 17:44:24 +02:00
// @filename: types.ts
declare module "*.foo" {
export interface OhNo { star: string }
}
// @filename: test.ts
declare module "a.foo" {
export interface OhNo { a: string }
}
import { OhNo } from "b.foo"
declare let ohno: OhNo;
ohno.a // oh no