1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
=== tests/cases/conformance/externalModules/foo2.ts ===
import foo1 = require('./foo1');
>foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0))
var x: number = foo1.b();
>x : Symbol(x, Decl(foo2.ts, 1, 3))
>foo1.b : Symbol(foo1.b, Decl(foo1.ts, 2, 22))
>foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0))
>b : Symbol(foo1.b, Decl(foo1.ts, 2, 22))
=== tests/cases/conformance/externalModules/foo1.ts ===
declare module M1 {
>M1 : Symbol(M1, Decl(foo1.ts, 0, 0))
export var a: string;
>a : Symbol(a, Decl(foo1.ts, 2, 11))
export function b(): number;
>b : Symbol(b, Decl(foo1.ts, 2, 22))
}
export = M1;
>M1 : Symbol(M1, Decl(foo1.ts, 0, 0))
|