1- mod.mts(1,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts '.
1+ mod.mts(1,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
22mod.mts(1,37): error TS2322: Type '{ field: 0; }' is not assignable to type 'ImportAttributes'.
33 Property 'field' is incompatible with index signature.
44 Type 'number' is not assignable to type 'string'.
55mod.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 '.
6+ mod.mts(3,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
77mod.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 '.
8+ mod.mts(5,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
99mod.mts(5,37): error TS2322: Type '{ field: RegExp; }' is not assignable to type 'ImportAttributes'.
1010 Property 'field' is incompatible with index signature.
1111 Type 'RegExp' is not assignable to type 'string'.
1212mod.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 '.
13+ mod.mts(7,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
1414mod.mts(7,37): error TS2322: Type '{ field: string[]; }' is not assignable to type 'ImportAttributes'.
1515 Property 'field' is incompatible with index signature.
1616 Type 'string[]' is not assignable to type 'string'.
1717mod.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 '.
18+ mod.mts(9,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
1919mod.mts(9,37): error TS2322: Type '{ field: { a: number; }; }' is not assignable to type 'ImportAttributes'.
2020 Property 'field' is incompatible with index signature.
2121 Type '{ a: number; }' is not assignable to type 'string'.
2222mod.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 '.
23+ mod.mts(11,37): error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
2424mod.mts(11,66): error TS2837: Import assertion values must be string literal expressions.
2525
2626
2727==== mod.mts (16 errors) ====
2828 import * as thing1 from "./mod.mjs" assert {field: 0};
2929 ~~~~~~
30- !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts '.
30+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
3131 ~~~~~~~~~~~~~~~~~
3232!!! error TS2322: Type '{ field: 0; }' is not assignable to type 'ImportAttributes'.
3333!!! error TS2322: Property 'field' is incompatible with index signature.
@@ -37,13 +37,13 @@ mod.mts(11,66): error TS2837: Import assertion values must be string literal exp
3737
3838 import * as thing2 from "./mod.mjs" assert {field: `a`};
3939 ~~~~~~
40- !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts '.
40+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
4141 ~~~
4242!!! error TS2837: Import assertion values must be string literal expressions.
4343
4444 import * as thing3 from "./mod.mjs" assert {field: /a/g};
4545 ~~~~~~
46- !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts '.
46+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
4747 ~~~~~~~~~~~~~~~~~~~~
4848!!! error TS2322: Type '{ field: RegExp; }' is not assignable to type 'ImportAttributes'.
4949!!! error TS2322: Property 'field' is incompatible with index signature.
@@ -53,7 +53,7 @@ mod.mts(11,66): error TS2837: Import assertion values must be string literal exp
5353
5454 import * as thing4 from "./mod.mjs" assert {field: ["a"]};
5555 ~~~~~~
56- !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts '.
56+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
5757 ~~~~~~~~~~~~~~~~~~~~~
5858!!! error TS2322: Type '{ field: string[]; }' is not assignable to type 'ImportAttributes'.
5959!!! error TS2322: Property 'field' is incompatible with index signature.
@@ -63,7 +63,7 @@ mod.mts(11,66): error TS2837: Import assertion values must be string literal exp
6363
6464 import * as thing5 from "./mod.mjs" assert {field: { a: 0 }};
6565 ~~~~~~
66- !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts '.
66+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
6767 ~~~~~~~~~~~~~~~~~~~~~~~~
6868!!! error TS2322: Type '{ field: { a: number; }; }' is not assignable to type 'ImportAttributes'.
6969!!! error TS2322: Property 'field' is incompatible with index signature.
@@ -73,6 +73,6 @@ mod.mts(11,66): error TS2837: Import assertion values must be string literal exp
7373
7474 import * as thing6 from "./mod.mjs" assert {type: "json", field: 0..toString()}
7575 ~~~~~~
76- !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'asserts '.
76+ !!! error TS2880: Import assertions have been replaced by import attributes. Use 'with' instead of 'assert '.
7777 ~~~~~~~~~~~~~
7878!!! error TS2837: Import assertion values must be string literal expressions.
0 commit comments