1
- setMethods.ts(13,17): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number>'.
2
- Type 'undefined[]' is missing the following properties from type 'SetLike<number>': has, size
3
- setMethods.ts(15,17): error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
4
- The types returned by 'keys()[Symbol.iterator]().next(...)' are incompatible between these types.
5
- Type 'IteratorResult<string, any>' is not assignable to type 'IteratorResult<number, any>'.
6
- Type 'IteratorYieldResult<string>' is not assignable to type 'IteratorResult<number, any>'.
7
- Type 'IteratorYieldResult<string>' is not assignable to type 'IteratorYieldResult<number>'.
8
- Type 'string' is not assignable to type 'number'.
9
- setMethods.ts(19,24): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number>'.
10
- setMethods.ts(21,24): error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
11
- setMethods.ts(25,22): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number>'.
12
- setMethods.ts(27,22): error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
13
- setMethods.ts(31,31): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number>'.
14
- setMethods.ts(33,31): error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
15
- setMethods.ts(37,22): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number>'.
16
- setMethods.ts(39,22): error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
17
- setMethods.ts(43,24): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number>'.
18
- setMethods.ts(45,24): error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
19
- setMethods.ts(49,26): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number>'.
20
- setMethods.ts(51,26): error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
1
+ setMethods.ts(13,17): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown>'.
2
+ Type 'undefined[]' is missing the following properties from type 'ReadonlySetLike<unknown>': has, size
3
+ setMethods.ts(19,24): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown>'.
4
+ setMethods.ts(25,22): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown>'.
5
+ setMethods.ts(31,31): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown>'.
6
+ setMethods.ts(37,22): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown>'.
7
+ setMethods.ts(43,24): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown>'.
8
+ setMethods.ts(49,26): error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown>'.
21
9
22
10
23
- ==== setMethods.ts (14 errors) ====
11
+ ==== setMethods.ts (7 errors) ====
24
12
let numberSet = new Set([0, 1, 2]);
25
13
26
14
let stringSet = new Set(["a", "b"]);
@@ -35,77 +23,58 @@ setMethods.ts(51,26): error TS2345: Argument of type 'Set<string>' is not assign
35
23
36
24
numberSet.union([]);
37
25
~~
38
- !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number >'.
39
- !!! error TS2345: Type 'undefined[]' is missing the following properties from type 'SetLike<number >': has, size
26
+ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown >'.
27
+ !!! error TS2345: Type 'undefined[]' is missing the following properties from type 'ReadonlySetLike<unknown >': has, size
40
28
numberSet.union(new Set);
41
29
numberSet.union(stringSet);
42
- ~~~~~~~~~
43
- !!! error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
44
- !!! error TS2345: The types returned by 'keys()[Symbol.iterator]().next(...)' are incompatible between these types.
45
- !!! error TS2345: Type 'IteratorResult<string, any>' is not assignable to type 'IteratorResult<number, any>'.
46
- !!! error TS2345: Type 'IteratorYieldResult<string>' is not assignable to type 'IteratorResult<number, any>'.
47
- !!! error TS2345: Type 'IteratorYieldResult<string>' is not assignable to type 'IteratorYieldResult<number>'.
48
- !!! error TS2345: Type 'string' is not assignable to type 'number'.
49
30
numberSet.union(numberMap);
50
31
numberSet.union(numberSetLike);
51
32
52
33
numberSet.intersection([]);
53
34
~~
54
- !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number >'.
35
+ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown >'.
55
36
numberSet.intersection(new Set);
56
37
numberSet.intersection(stringSet);
57
- ~~~~~~~~~
58
- !!! error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
59
38
numberSet.intersection(numberMap);
60
39
numberSet.intersection(numberSetLike);
61
40
62
41
numberSet.difference([]);
63
42
~~
64
- !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number >'.
43
+ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown >'.
65
44
numberSet.difference(new Set);
66
45
numberSet.difference(stringSet);
67
- ~~~~~~~~~
68
- !!! error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
69
46
numberSet.difference(numberMap);
70
47
numberSet.difference(numberSetLike);
71
48
72
49
numberSet.symmetricDifference([]);
73
50
~~
74
- !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number >'.
51
+ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown >'.
75
52
numberSet.symmetricDifference(new Set);
76
53
numberSet.symmetricDifference(stringSet);
77
- ~~~~~~~~~
78
- !!! error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
79
54
numberSet.symmetricDifference(numberMap);
80
55
numberSet.symmetricDifference(numberSetLike);
81
56
82
57
numberSet.isSubsetOf([]);
83
58
~~
84
- !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number >'.
59
+ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown >'.
85
60
numberSet.isSubsetOf(new Set);
86
61
numberSet.isSubsetOf(stringSet);
87
- ~~~~~~~~~
88
- !!! error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
89
62
numberSet.isSubsetOf(numberMap);
90
63
numberSet.isSubsetOf(numberSetLike);
91
64
92
65
numberSet.isSupersetOf([]);
93
66
~~
94
- !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number >'.
67
+ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown >'.
95
68
numberSet.isSupersetOf(new Set);
96
69
numberSet.isSupersetOf(stringSet);
97
- ~~~~~~~~~
98
- !!! error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
99
70
numberSet.isSupersetOf(numberMap);
100
71
numberSet.isSupersetOf(numberSetLike);
101
72
102
73
numberSet.isDisjointFrom([]);
103
74
~~
104
- !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'SetLike<number >'.
75
+ !!! error TS2345: Argument of type 'undefined[]' is not assignable to parameter of type 'ReadonlySetLike<unknown >'.
105
76
numberSet.isDisjointFrom(new Set);
106
77
numberSet.isDisjointFrom(stringSet);
107
- ~~~~~~~~~
108
- !!! error TS2345: Argument of type 'Set<string>' is not assignable to parameter of type 'SetLike<number>'.
109
78
numberSet.isDisjointFrom(numberMap);
110
79
numberSet.isDisjointFrom(numberSetLike);
111
80
0 commit comments