TypeScript/tests/baselines/reference/ambientModules.types
2016-09-01 14:25:44 -07:00

16 lines
297 B
Plaintext

=== tests/cases/compiler/ambientModules.ts ===
declare module Foo.Bar { export var foo; };
>Foo : typeof Foo
>Bar : typeof Bar
>foo : any
Foo.Bar.foo = 5;
>Foo.Bar.foo = 5 : 5
>Foo.Bar.foo : any
>Foo.Bar : typeof Foo.Bar
>Foo : typeof Foo
>Bar : typeof Foo.Bar
>foo : any
>5 : 5