|
1 |
| -/index.ts(2,45): error TS2836: Import assertions are not allowed on statements that transpile to CommonJS 'require' calls. |
| 1 | +/index.ts(2,45): error TS2836: Import assertions are not allowed on statements that compile to CommonJS 'require' calls. |
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 TS2836: Import assertions are not allowed on statements that transpile to CommonJS 'require' calls. |
5 |
| -/index.ts(6,76): error TS2836: Import assertions are not allowed on statements that transpile to CommonJS 'require' calls. |
| 4 | +/index.ts(4,39): error TS2836: Import assertions are not allowed on statements that compile to CommonJS 'require' calls. |
| 5 | +/index.ts(6,76): error TS2836: Import assertions are not allowed on statements that compile to CommonJS 'require' calls. |
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 TS2836: Import assertions are not allowed on statements that transpile to CommonJS 'require' calls. |
| 12 | +!!! error TS2836: Import assertions are not allowed on statements that compile to CommonJS 'require' calls. |
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 TS2836: Import assertions are not allowed on statements that transpile to CommonJS 'require' calls. |
| 20 | +!!! error TS2836: Import assertions are not allowed on statements that compile to CommonJS 'require' calls. |
21 | 21 | // not exclusively type-only
|
22 | 22 | import {type RequireInterface as Req, RequireInterface as Req2} from "pkg" assert { "resolution-mode": "require" };
|
23 | 23 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
24 |
| -!!! error TS2836: Import assertions are not allowed on statements that transpile to CommonJS 'require' calls. |
| 24 | +!!! error TS2836: Import assertions are not allowed on statements that compile to CommonJS 'require' calls. |
25 | 25 |
|
26 | 26 | export interface LocalInterface extends RequireInterface, ImportInterface {}
|
27 | 27 |
|
|
0 commit comments