mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
473 B
TypeScript
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
|