TypeScript/tests/baselines/reference/umd4.types
Ryan Cavanaugh 44aa7388ea UMD support
2016-03-09 10:08:24 -08:00

38 lines
617 B
Plaintext

=== 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 : any