2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/ambientModules.ts ===
|
|
|
|
declare module Foo.Bar { export var foo; };
|
2015-04-16 01:44:20 +02:00
|
|
|
>Foo : typeof Foo
|
|
|
|
>Bar : typeof Bar
|
|
|
|
>foo : any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
Foo.Bar.foo = 5;
|
|
|
|
>Foo.Bar.foo = 5 : number
|
2015-04-16 01:44:20 +02:00
|
|
|
>Foo.Bar.foo : any
|
|
|
|
>Foo.Bar : typeof Foo.Bar
|
|
|
|
>Foo : typeof Foo
|
|
|
|
>Bar : typeof Foo.Bar
|
|
|
|
>foo : any
|
2015-04-13 21:36:11 +02:00
|
|
|
>5 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|