Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/importNonExportedMember5.errors.txt.diff

18 lines
877 B
Diff

--- old.importNonExportedMember5.errors.txt
+++ new.importNonExportedMember5.errors.txt
@@= skipped -0, +0 lines =@@
b.ts(1,10): error TS2616: 'Foo' can only be imported by using 'import Foo = require("./a")' or a default import.
-b.ts(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
==== a.ts (0 errors) ====
class Foo {}
export = Foo;
-==== b.ts (2 errors) ====
+==== b.ts (1 errors) ====
import { Foo } from './a';
~~~
!!! error TS2616: 'Foo' can only be imported by using 'import Foo = require("./a")' or a default import.
- ~~~~~
-!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.