* Do not consider UMD alias symbols as visible within external modules in the symbol writer * Minimal repro
36 lines
664 B
Text
36 lines
664 B
Text
=== tests/cases/conformance/externalModules/a.ts ===
|
|
import * as Bar from './foo';
|
|
>Bar : typeof Bar
|
|
|
|
Bar.fn();
|
|
>Bar.fn() : void
|
|
>Bar.fn : () => void
|
|
>Bar : typeof Bar
|
|
>fn : () => void
|
|
|
|
let x: Bar.Thing;
|
|
>x : Bar.Thing
|
|
>Bar : any
|
|
>Thing : Bar.Thing
|
|
|
|
let y: number = x.n;
|
|
>y : number
|
|
>x.n : number
|
|
>x : Bar.Thing
|
|
>n : number
|
|
|
|
=== tests/cases/conformance/externalModules/foo.d.ts ===
|
|
export var x: number;
|
|
>x : number
|
|
|
|
export function fn(): void;
|
|
>fn : () => void
|
|
|
|
export interface Thing { n: typeof x }
|
|
>Thing : Thing
|
|
>n : number
|
|
>x : number
|
|
|
|
export as namespace Foo;
|
|
>Foo : typeof "tests/cases/conformance/externalModules/foo"
|
|
|