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
Copy file name to clipboardExpand all lines: tests/baselines/reference/circularlyConstrainedMappedTypeContainingConditionalNoInfiniteInstantiationDepth.types
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ export type Matching<InjectedProps, DecorationTargetProps> = {
105
105
};
106
106
107
107
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
108
-
>Omit : Omit<T, K>
108
+
>Omit : Pick<T, Exclude<keyof T, K>>
109
109
110
110
export type InferableComponentEnhancerWithProps<TInjectedProps, TNeedsProps> =
Copy file name to clipboardExpand all lines: tests/baselines/reference/complicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.errors.txt
+4-36Lines changed: 4 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,6 @@
1
1
tests/cases/compiler/complicatedIndexedAccessKeyofReliesOnKeyofNeverUpperBound.ts(33,5): error TS2322: Type '{ type: T; localChannelId: string; }' is not assignable to type 'NewChannel<ChannelOfType<T, TextChannel> | ChannelOfType<T, EmailChannel>>'.
2
-
Type '{ type: T; localChannelId: string; }' is not assignable to type 'Pick<ChannelOfType<T, TextChannel> | ChannelOfType<T, EmailChannel>, "type">'.
3
-
Types of property 'type' are incompatible.
4
-
Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
5
-
Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
6
-
Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["type"]'.
7
-
Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
8
-
Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
9
-
Type '"text" | "email"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
10
-
Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
11
-
Type '"text"' is not assignable to type 'T & "text"'.
12
-
Type 'T' is not assignable to type 'T & "text"'.
13
-
Type '"text" | "email"' is not assignable to type 'T & "text"'.
14
-
Type '"text"' is not assignable to type 'T & "text"'.
15
-
Type '"text"' is not assignable to type 'T'.
16
-
'"text"' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '"text" | "email"'.
17
-
Type 'T' is not assignable to type '"text"'.
18
-
Type '"text" | "email"' is not assignable to type '"text"'.
19
-
Type '"email"' is not assignable to type '"text"'.
2
+
Type '{ type: T; localChannelId: string; }' is not assignable to type 'Pick<ChannelOfType<T, EmailChannel>, "type"> & Partial<Pick<ChannelOfType<T, EmailChannel>, (({ [P in keyof ChannelOfType<T, TextChannel>]: P; } | { [P in keyof ChannelOfType<T, EmailChannel>]: P; }) & { type: never; id: never; } & { [x: string]: never; })[keyof ChannelOfType<T, TextChannel> & keyof ChannelOfType<T, EmailChannel>]>> & { localChannelId: string; }'.
3
+
Type '{ type: T; localChannelId: string; }' is not assignable to type 'Pick<ChannelOfType<T, EmailChannel>, "type">'.
!!! error TS2322: Type '{ type: T; localChannelId: string; }' is not assignable to type 'NewChannel<ChannelOfType<T, TextChannel> | ChannelOfType<T, EmailChannel>>'.
58
-
!!! error TS2322: Type '{ type: T; localChannelId: string; }' is not assignable to type 'Pick<ChannelOfType<T, TextChannel> | ChannelOfType<T, EmailChannel>, "type">'.
59
-
!!! error TS2322: Types of property 'type' are incompatible.
60
-
!!! error TS2322: Type 'T' is not assignable to type 'ChannelOfType<T, TextChannel>["type"] & ChannelOfType<T, EmailChannel>["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"]'.
63
-
!!! error TS2322: Type '"text"' is not assignable to type 'ChannelOfType<T, TextChannel>["type"]'.
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"'.
42
+
!!! error TS2322: Type '{ type: T; localChannelId: string; }' is not assignable to type 'Pick<ChannelOfType<T, EmailChannel>, "type"> & Partial<Pick<ChannelOfType<T, EmailChannel>, (({ [P in keyof ChannelOfType<T, TextChannel>]: P; } | { [P in keyof ChannelOfType<T, EmailChannel>]: P; }) & { type: never; id: never; } & { [x: string]: never; })[keyof ChannelOfType<T, TextChannel> & keyof ChannelOfType<T, EmailChannel>]>> & { localChannelId: string; }'.
43
+
!!! error TS2322: Type '{ type: T; localChannelId: string; }' is not assignable to type 'Pick<ChannelOfType<T, EmailChannel>, "type">'.
Type 'string | undefined' is not assignable to type '{}'.
21
21
Type 'undefined' is not assignable to type '{}'.
22
-
tests/cases/conformance/types/conditional/conditionalTypes1.ts(103,5): error TS2322: Type 'FunctionProperties<T>' is not assignable to type 'T'.
23
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'FunctionProperties<T>'.
24
-
tests/cases/conformance/types/conditional/conditionalTypes1.ts(104,5): error TS2322: Type 'NonFunctionProperties<T>' is not assignable to type 'T'.
25
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'NonFunctionProperties<T>'.
26
-
tests/cases/conformance/types/conditional/conditionalTypes1.ts(106,5): error TS2322: Type 'NonFunctionProperties<T>' is not assignable to type 'FunctionProperties<T>'.
27
-
Type 'FunctionPropertyNames<T>' is not assignable to type 'NonFunctionPropertyNames<T>'.
28
-
Type 'keyof T' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
29
-
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
30
-
Type 'string' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
31
-
Type 'keyof T' is not assignable to type 'never'.
32
-
Type 'string | number | symbol' is not assignable to type 'never'.
33
-
Type 'string' is not assignable to type 'never'.
34
-
tests/cases/conformance/types/conditional/conditionalTypes1.ts(108,5): error TS2322: Type 'FunctionProperties<T>' is not assignable to type 'NonFunctionProperties<T>'.
35
-
Type 'NonFunctionPropertyNames<T>' is not assignable to type 'FunctionPropertyNames<T>'.
36
-
Type 'keyof T' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
37
-
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
38
-
Type 'string' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
39
-
Type 'keyof T' is not assignable to type 'never'.
22
+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(103,5): error TS2322: Type 'Pick<T, FunctionPropertyNames<T>>' is not assignable to type 'T'.
23
+
'T' could be instantiated with an arbitrary type which could be unrelated to 'Pick<T, FunctionPropertyNames<T>>'.
24
+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(104,5): error TS2322: Type 'Pick<T, NonFunctionPropertyNames<T>>' is not assignable to type 'T'.
25
+
'T' could be instantiated with an arbitrary type which could be unrelated to 'Pick<T, NonFunctionPropertyNames<T>>'.
26
+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(106,5): error TS2322: Type 'Pick<T, NonFunctionPropertyNames<T>>' is not assignable to type 'Pick<T, FunctionPropertyNames<T>>'.
27
+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(108,5): error TS2322: Type 'Pick<T, FunctionPropertyNames<T>>' is not assignable to type 'Pick<T, NonFunctionPropertyNames<T>>'.
40
28
tests/cases/conformance/types/conditional/conditionalTypes1.ts(114,5): error TS2322: Type 'keyof T' is not assignable to type 'FunctionPropertyNames<T>'.
41
29
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
42
30
Type 'string' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
0 commit comments