mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
596 B
Plaintext
17 lines
596 B
Plaintext
a.ts(2,5): error TS2339: Property 'default' does not exist on type 'typeof import("b")'.
|
|
a.ts(3,5): error TS2339: Property 'default' does not exist on type 'typeof import("b")'.
|
|
|
|
|
|
==== a.ts (2 errors) ====
|
|
import Foo = require("./b");
|
|
Foo.default.bar();
|
|
~~~~~~~
|
|
!!! error TS2339: Property 'default' does not exist on type 'typeof import("b")'.
|
|
Foo.default.default.foo();
|
|
~~~~~~~
|
|
!!! error TS2339: Property 'default' does not exist on type 'typeof import("b")'.
|
|
==== b.d.ts (0 errors) ====
|
|
export function foo();
|
|
|
|
export function bar();
|
|
|