|
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'. |
2 | 2 | /index.ts(2,73): error TS1453: `resolution-mode` should be either `require` or `import`. |
3 | 3 | /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'. |
6 | 6 |
|
7 | 7 |
|
8 | 8 | ==== /index.ts (5 errors) ==== |
9 | 9 | // incorrect mode |
10 | 10 | import type { RequireInterface } from "pkg" assert { "resolution-mode": "foobar" }; |
11 | 11 | ~~~~~~ |
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'. |
13 | 13 | ~~~~~~~~ |
14 | 14 | !!! error TS1453: `resolution-mode` should be either `require` or `import`. |
15 | 15 | // not type-only |
16 | 16 | import { ImportInterface } from "pkg" assert { "resolution-mode": "import" }; |
17 | 17 | ~~~~~~~~~~~~~~~ |
18 | 18 | !!! error TS2305: Module '"pkg"' has no exported member 'ImportInterface'. |
19 | 19 | ~~~~~~ |
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'. |
21 | 21 | // not exclusively type-only |
22 | 22 | import {type RequireInterface as Req, RequireInterface as Req2} from "pkg" assert { "resolution-mode": "require" }; |
23 | 23 | ~~~~~~ |
|
0 commit comments