TypeScript/tests/baselines/reference/umd3.types
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

37 lines
664 B
Plaintext

=== tests/cases/conformance/externalModules/a.ts ===
import * as Foo from './foo';
>Foo : typeof Foo
Foo.fn();
>Foo.fn() : void
>Foo.fn : () => void
>Foo : typeof Foo
>fn : () => void
let x: Foo.Thing;
>x : Foo.Thing
>Foo : any
>Thing : Foo.Thing
let y: number = x.n;
>y : number
>x.n : number
>x : Foo.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"