19 lines
438 B
Text
19 lines
438 B
Text
=== tests/cases/conformance/externalModules/a.ts ===
|
|
/// <reference path="foo.d.ts" />
|
|
export const x = Foo; // OK in value position because allowUmdGlobalAccess: true
|
|
>x : typeof Thing
|
|
>Foo : typeof Thing
|
|
|
|
=== tests/cases/conformance/externalModules/foo.d.ts ===
|
|
declare class Thing {
|
|
>Thing : Thing
|
|
|
|
foo(): number;
|
|
>foo : () => number
|
|
}
|
|
export = Thing;
|
|
>Thing : Thing
|
|
|
|
export as namespace Foo;
|
|
>Foo : typeof Thing
|
|
|