2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
|
|
/// <reference path="foo_0.ts"/>
|
|
|
|
import foo = require("foo");
|
2014-08-28 21:40:58 +02:00
|
|
|
>foo : typeof foo
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var z = foo.x + 10;
|
|
|
|
>z : number
|
|
|
|
>foo.x + 10 : number
|
|
|
|
>foo.x : number
|
2014-08-25 19:36:12 +02:00
|
|
|
>foo : typeof foo
|
2014-08-15 23:33:16 +02:00
|
|
|
>x : number
|
|
|
|
|
|
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
|
|
declare module "foo" {
|
|
|
|
export var x: number;
|
|
|
|
>x : number
|
|
|
|
}
|
|
|
|
|