TypeScript/tests/baselines/reference/umd6.types

24 lines
463 B
Plaintext

=== tests/cases/conformance/externalModules/a.ts ===
/// <reference path="foo.d.ts" />
let y: number = Foo.fn();
>y : number
>Foo.fn() : number
>Foo.fn : () => number
>Foo : typeof Foo
>fn : () => number
=== tests/cases/conformance/externalModules/foo.d.ts ===
declare namespace Thing {
>Thing : typeof Thing
export function fn(): number;
>fn : () => number
}
export = Thing;
>Thing : typeof Thing
export as namespace Foo;
>Foo : any