Skip to content

Commit ef33060

Browse files
Update baselines.
1 parent 6f23f9a commit ef33060

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/baselines/reference/nodeModulesImportModeDeclarationEmitErrors1(module=nodenext).errors.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
/index.ts(2,45): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
1+
/index.ts(2,45): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
22
/index.ts(2,73): error TS1453: `resolution-mode` should be either `require` or `import`.
33
/index.ts(4,10): error TS2305: Module '"pkg"' has no exported member 'ImportInterface'.
4-
/index.ts(4,39): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
5-
/index.ts(6,76): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
4+
/index.ts(4,39): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
5+
/index.ts(6,76): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
66

77

88
==== /index.ts (5 errors) ====
99
// incorrect mode
1010
import type { RequireInterface } from "pkg" assert { "resolution-mode": "foobar" };
1111
~~~~~~
12-
!!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
12+
!!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
1313
~~~~~~~~
1414
!!! error TS1453: `resolution-mode` should be either `require` or `import`.
1515
// not type-only
1616
import { ImportInterface } from "pkg" assert { "resolution-mode": "import" };
1717
~~~~~~~~~~~~~~~
1818
!!! error TS2305: Module '"pkg"' has no exported member 'ImportInterface'.
1919
~~~~~~
20-
!!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
20+
!!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.
2121
// not exclusively type-only
2222
import {type RequireInterface as Req, RequireInterface as Req2} from "pkg" assert { "resolution-mode": "require" };
2323
~~~~~~

0 commit comments

Comments
 (0)