15 lines
307 B
Text
15 lines
307 B
Text
=== 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 : number
|
|
>Foo.Bar.foo : any
|
|
>Foo.Bar : typeof Foo.Bar
|
|
>Foo : typeof Foo
|
|
>Bar : typeof Foo.Bar
|
|
>foo : any
|
|
>5 : number
|
|
|