mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
819 B
819 B
--- old.esModuleInteropPrettyErrorRelatedInformation.errors.txt
+++ new.esModuleInteropPrettyErrorRelatedInformation.errors.txt
@@= skipped -3, +3 lines =@@
3 invoke(foo);
~~~
- index.ts:1:1
+ index.ts:1:1 - Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.
1 import * as foo from "./foo";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.
==== foo.d.ts (0 errors) ====
+++ new.esModuleInteropPrettyErrorRelatedInformation.errors.txt
@@= skipped -3, +3 lines =@@
3 invoke(foo);
~~~
- index.ts:1:1
+ index.ts:1:1 - Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.
1 import * as foo from "./foo";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.
==== foo.d.ts (0 errors) ====