1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
=== tests/cases/compiler/foo.d.ts ===
declare function foo(): void;
>foo : Symbol(foo, Decl(foo.d.ts, 0, 0), Decl(foo.d.ts, 0, 29))
declare namespace foo {}
>foo : Symbol(foo, Decl(foo.d.ts, 0, 0), Decl(foo.d.ts, 0, 29))
export = foo;
>foo : Symbol(foo, Decl(foo.d.ts, 0, 0), Decl(foo.d.ts, 0, 29))
=== tests/cases/compiler/index.ts ===
import("./foo").then(f => {
>import("./foo").then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
>"./foo" : Symbol("tests/cases/compiler/foo", Decl(foo.d.ts, 0, 0))
>then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --))
>f : Symbol(f, Decl(index.ts, 0, 21))
f.default;
>f.default : Symbol(default)
>f : Symbol(f, Decl(index.ts, 0, 21))
>default : Symbol(default)
});
|