You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!!! error TS2322: Type '{ type: T; localChannelId: string; }' is not assignable to type 'Pick<ChannelOfType<T, TextChannel> | ChannelOfType<T, EmailChannel>, "type">'.
54
59
!!! error TS2322: Types of property 'type' are incompatible.
55
60
!!! error TS2322: Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
56
-
!!! error TS2322: Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
57
-
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
61
+
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
62
+
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
58
63
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
59
-
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
60
-
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
61
-
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
62
-
!!! error TS2322: Type 'T' is not assignable to type 'T & "text"'.
63
-
!!! error TS2322: Type 'T' is not assignable to type '"text"'.
64
-
!!! error TS2322: Type '"text" | "email"' is not assignable to type '"text"'.
65
-
!!! error TS2322: Type '"email"' is not assignable to type '"text"'.
64
+
!!! error TS2322: Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
65
+
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
66
+
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
67
+
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
68
+
!!! error TS2322: Type 'T' is not assignable to type 'T & "text"'.
69
+
!!! error TS2322: Type '"text" | "email"' is not assignable to type 'T & "text"'.
70
+
!!! error TS2322: Type '"text"' is not assignable to type 'T & "text"'.
71
+
!!! error TS2322: Type '"text"' is not assignable to type 'T'.
72
+
!!! error TS2322: '"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
73
+
!!! error TS2322: Type 'T' is not assignable to type '"text"'.
74
+
!!! error TS2322: Type '"text" | "email"' is not assignable to type '"text"'.
75
+
!!! error TS2322: Type '"email"' is not assignable to type '"text"'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/indexedAccessRelation.errors.txt
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
tests/cases/compiler/indexedAccessRelation.ts(16,23): error TS2345: Argument of type '{ a: T; }' is not assignable to parameter of type 'Pick<S & State<T>, "a">'.
2
2
Types of property 'a' are incompatible.
3
3
Type 'T' is not assignable to type 'S["a"] & T'.
4
-
Type 'T' is not assignable to type 'S["a"]'.
4
+
Type 'Foo' is not assignable to type 'S["a"] & T'.
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(74,5): error TS2536: Type 'keyof T | keyof U' cannot be used to index type 'T | U'.
27
27
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(82,5): error TS2322: Type 'keyof T | keyof U' is not assignable to type 'keyof T & keyof U'.
28
28
Type 'keyof T' is not assignable to type 'keyof T & keyof U'.
29
-
Type 'keyof T' is not assignable to type 'keyof U'.
30
-
Type 'string | number | symbol' is not assignable to type 'keyof U'.
31
-
Type 'string' is not assignable to type 'keyof U'.
29
+
Type 'string | number | symbol' is not assignable to type 'keyof T & keyof U'.
30
+
Type 'string' is not assignable to type 'keyof T & keyof U'.
31
+
Type 'string' is not assignable to type 'keyof T'.
32
+
Type 'keyof T' is not assignable to type 'keyof U'.
33
+
Type 'string | number | symbol' is not assignable to type 'keyof U'.
34
+
Type 'string' is not assignable to type 'keyof U'.
32
35
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(83,5): error TS2322: Type 'keyof T | keyof U' is not assignable to type 'keyof T & keyof U'.
33
36
Type 'keyof T' is not assignable to type 'keyof T & keyof U'.
34
37
tests/cases/conformance/types/keyof/keyofAndIndexedAccessErrors.ts(86,5): error TS2322: Type 'keyof T | keyof U' is not assignable to type 'keyof T & keyof U'.
0 commit comments