TypeScript/tests/baselines/reference/ambientModules.types

16 lines
307 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/ambientModules.ts ===
declare module Foo.Bar { export var foo; };
>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
>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