=== tests/cases/compiler/foo.d.ts === declare function foo(): void; >foo : () => void declare namespace foo {} export = foo; >foo : () => void === tests/cases/compiler/index.ts === import("./foo").then(f => { >import("./foo").then(f => { f.default;}) : Promise >import("./foo").then : void; }, TResult2 = never>(onfulfilled?: (value: { default: () => void; }) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >import("./foo") : Promise<{ default: () => void; }> >"./foo" : "./foo" >then : void; }, TResult2 = never>(onfulfilled?: (value: { default: () => void; }) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise >f => { f.default;} : (f: { default: () => void; }) => void >f : { default: () => void; } f.default; >f.default : () => void >f : { default: () => void; } >default : () => void });