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 '.
2
2
mod.mts(1,37): error TS2322: Type '{ field: 0; }' is not assignable to type 'ImportAttributes'.
3
3
Property 'field' is incompatible with index signature.
4
4
Type 'number' is not assignable to type 'string'.
5
5
mod.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 '.
7
7
mod.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 '.
9
9
mod.mts(5,37): error TS2322: Type '{ field: RegExp; }' is not assignable to type 'ImportAttributes'.
10
10
Property 'field' is incompatible with index signature.
11
11
Type 'RegExp' is not assignable to type 'string'.
12
12
mod.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 '.
14
14
mod.mts(7,37): error TS2322: Type '{ field: string[]; }' is not assignable to type 'ImportAttributes'.
15
15
Property 'field' is incompatible with index signature.
16
16
Type 'string[]' is not assignable to type 'string'.
17
17
mod.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 '.
19
19
mod.mts(9,37): error TS2322: Type '{ field: { a: number; }; }' is not assignable to type 'ImportAttributes'.
20
20
Property 'field' is incompatible with index signature.
21
21
Type '{ a: number; }' is not assignable to type 'string'.
22
22
mod.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 '.
24
24
mod.mts(11,66): error TS2837: Import assertion values must be string literal expressions.
25
25
26
26
27
27
==== mod.mts (16 errors) ====
28
28
import * as thing1 from "./mod.mjs" assert {field: 0};
29
29
~~~~~~
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 '.
31
31
~~~~~~~~~~~~~~~~~
32
32
!!! error TS2322: Type '{ field: 0; }' is not assignable to type 'ImportAttributes'.
33
33
!!! 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
37
37
38
38
import * as thing2 from "./mod.mjs" assert {field: `a`};
39
39
~~~~~~
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 '.
41
41
~~~
42
42
!!! error TS2837: Import assertion values must be string literal expressions.
43
43
44
44
import * as thing3 from "./mod.mjs" assert {field: /a/g};
45
45
~~~~~~
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 '.
47
47
~~~~~~~~~~~~~~~~~~~~
48
48
!!! error TS2322: Type '{ field: RegExp; }' is not assignable to type 'ImportAttributes'.
49
49
!!! 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
53
53
54
54
import * as thing4 from "./mod.mjs" assert {field: ["a"]};
55
55
~~~~~~
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 '.
57
57
~~~~~~~~~~~~~~~~~~~~~
58
58
!!! error TS2322: Type '{ field: string[]; }' is not assignable to type 'ImportAttributes'.
59
59
!!! 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
63
63
64
64
import * as thing5 from "./mod.mjs" assert {field: { a: 0 }};
65
65
~~~~~~
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 '.
67
67
~~~~~~~~~~~~~~~~~~~~~~~~
68
68
!!! error TS2322: Type '{ field: { a: number; }; }' is not assignable to type 'ImportAttributes'.
69
69
!!! 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
73
73
74
74
import * as thing6 from "./mod.mjs" assert {type: "json", field: 0..toString()}
75
75
~~~~~~
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 '.
77
77
~~~~~~~~~~~~~
78
78
!!! error TS2837: Import assertion values must be string literal expressions.
0 commit comments