TypeScript/tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts
Wesley Wigham c3e090695e Do not consider UMD alias symbols as visible within external modules (#18049)
* Do not consider UMD alias symbols as visible within external modules in the symbol writer

* Minimal repro
2017-09-06 22:07:30 -07:00

13 lines
270 B
TypeScript

// @declaration: true
// @filename: node_modules/umd.d.ts
export as namespace UMD;
export type Thing = {
a: number;
}
export declare function makeThing(): Thing;
// @filename: index.ts
import { makeThing } from "umd";
export const thing = makeThing();