mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
371 B
Plaintext
14 lines
371 B
Plaintext
b.ts(1,8): error TS18058: Default imports are not allowed in a deferred import.
|
|
|
|
|
|
==== a.ts (0 errors) ====
|
|
export default function foo() {
|
|
console.log("foo from a");
|
|
}
|
|
|
|
==== b.ts (1 errors) ====
|
|
import defer foo from "./a";
|
|
~~~~~~~~~
|
|
!!! error TS18058: Default imports are not allowed in a deferred import.
|
|
|
|
foo(); |