1+ mod.mts(1,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
12mod.mts(1,37): error TS2322: Type '{ field: 0; }' is not assignable to type 'ImportAttributes'.
23 Property 'field' is incompatible with index signature.
34 Type 'number' is not assignable to type 'string'.
45mod.mts(1,52): error TS2837: Import assertion values must be string literal expressions.
6+ mod.mts(3,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
57mod.mts(3,52): error TS2837: Import assertion values must be string literal expressions.
8+ mod.mts(5,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
69mod.mts(5,37): error TS2322: Type '{ field: RegExp; }' is not assignable to type 'ImportAttributes'.
710 Property 'field' is incompatible with index signature.
811 Type 'RegExp' is not assignable to type 'string'.
912mod.mts(5,52): error TS2837: Import assertion values must be string literal expressions.
13+ mod.mts(7,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
1014mod.mts(7,37): error TS2322: Type '{ field: string[]; }' is not assignable to type 'ImportAttributes'.
1115 Property 'field' is incompatible with index signature.
1216 Type 'string[]' is not assignable to type 'string'.
1317mod.mts(7,52): error TS2837: Import assertion values must be string literal expressions.
18+ mod.mts(9,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
1419mod.mts(9,37): error TS2322: Type '{ field: { a: number; }; }' is not assignable to type 'ImportAttributes'.
1520 Property 'field' is incompatible with index signature.
1621 Type '{ a: number; }' is not assignable to type 'string'.
1722mod.mts(9,52): error TS2837: Import assertion values must be string literal expressions.
23+ mod.mts(11,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
1824mod.mts(11,66): error TS2837: Import assertion values must be string literal expressions.
1925
2026
21- ==== mod.mts (10 errors) ====
27+ ==== mod.mts (16 errors) ====
2228 import * as thing1 from "./mod.mjs" assert {field: 0};
29+ ~~~~~~
30+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
2331 ~~~~~~~~~~~~~~~~~
2432!!! error TS2322: Type '{ field: 0; }' is not assignable to type 'ImportAttributes'.
2533!!! error TS2322: Property 'field' is incompatible with index signature.
@@ -28,10 +36,14 @@ mod.mts(11,66): error TS2837: Import assertion values must be string literal exp
2836!!! error TS2837: Import assertion values must be string literal expressions.
2937
3038 import * as thing2 from "./mod.mjs" assert {field: `a`};
39+ ~~~~~~
40+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
3141 ~~~
3242!!! error TS2837: Import assertion values must be string literal expressions.
3343
3444 import * as thing3 from "./mod.mjs" assert {field: /a/g};
45+ ~~~~~~
46+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
3547 ~~~~~~~~~~~~~~~~~~~~
3648!!! error TS2322: Type '{ field: RegExp; }' is not assignable to type 'ImportAttributes'.
3749!!! error TS2322: Property 'field' is incompatible with index signature.
@@ -40,6 +52,8 @@ mod.mts(11,66): error TS2837: Import assertion values must be string literal exp
4052!!! error TS2837: Import assertion values must be string literal expressions.
4153
4254 import * as thing4 from "./mod.mjs" assert {field: ["a"]};
55+ ~~~~~~
56+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
4357 ~~~~~~~~~~~~~~~~~~~~~
4458!!! error TS2322: Type '{ field: string[]; }' is not assignable to type 'ImportAttributes'.
4559!!! error TS2322: Property 'field' is incompatible with index signature.
@@ -48,6 +62,8 @@ mod.mts(11,66): error TS2837: Import assertion values must be string literal exp
4862!!! error TS2837: Import assertion values must be string literal expressions.
4963
5064 import * as thing5 from "./mod.mjs" assert {field: { a: 0 }};
65+ ~~~~~~
66+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
5167 ~~~~~~~~~~~~~~~~~~~~~~~~
5268!!! error TS2322: Type '{ field: { a: number; }; }' is not assignable to type 'ImportAttributes'.
5369!!! error TS2322: Property 'field' is incompatible with index signature.
@@ -56,5 +72,7 @@ mod.mts(11,66): error TS2837: Import assertion values must be string literal exp
5672!!! error TS2837: Import assertion values must be string literal expressions.
5773
5874 import * as thing6 from "./mod.mjs" assert {type: "json", field: 0..toString()}
75+ ~~~~~~
76+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts'.
5977 ~~~~~~~~~~~~~
6078!!! error TS2837: Import assertion values must be string literal expressions.
0 commit comments