mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
649 B
Plaintext
26 lines
649 B
Plaintext
//// [tests/cases/conformance/externalModules/exportDeclaredModule.ts] ////
|
|
|
|
=== 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, 1, 22))
|
|
>foo1 : Symbol(foo1, Decl(foo2.ts, 0, 0))
|
|
>b : Symbol(foo1.b, Decl(foo1.ts, 1, 22))
|
|
|
|
=== foo1.ts ===
|
|
declare namespace M1 {
|
|
>M1 : Symbol(M1, Decl(foo1.ts, 0, 0))
|
|
|
|
export var a: string;
|
|
>a : Symbol(a, Decl(foo1.ts, 1, 11))
|
|
|
|
export function b(): number;
|
|
>b : Symbol(b, Decl(foo1.ts, 1, 22))
|
|
}
|
|
export = M1;
|
|
>M1 : Symbol(M1, Decl(foo1.ts, 0, 0))
|
|
|