swc/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.ts
2022-02-04 17:08:38 +09:00

13 lines
248 B
TypeScript

// @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