mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
572 B
Plaintext
22 lines
572 B
Plaintext
//// [tests/cases/compiler/esModuleInteropImportNamespace.ts] ////
|
|
|
|
=== 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))
|
|
|
|
=== index.ts ===
|
|
import * as foo from "./foo";
|
|
>foo : Symbol(foo, Decl(index.ts, 0, 6))
|
|
|
|
foo.default;
|
|
>foo.default : Symbol(default)
|
|
>foo : Symbol(foo, Decl(index.ts, 0, 6))
|
|
>default : Symbol(default)
|
|
|