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
tests/cases/conformance/types/conditional/conditionalTypes1.ts(30,9): error TS2322: Type 'T["x"]' is not assignable to type 'string'.
14
14
Type 'string | undefined' is not assignable to type 'string'.
15
15
Type 'undefined' is not assignable to type 'string'.
16
-
tests/cases/conformance/types/conditional/conditionalTypes1.ts(103,5): error TS2322: Type 'Pick<T, FunctionPropertyNames<T>>' is not assignable to type 'T'.
17
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'Pick<T, FunctionPropertyNames<T>>'.
18
-
tests/cases/conformance/types/conditional/conditionalTypes1.ts(104,5): error TS2322: Type 'Pick<T, NonFunctionPropertyNames<T>>' is not assignable to type 'T'.
19
-
'T' could be instantiated with an arbitrary type which could be unrelated to 'Pick<T, NonFunctionPropertyNames<T>>'.
20
-
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>>'.
16
+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(103,5): error TS2322: Type 'FunctionProperties<T>' is not assignable to type 'T'.
17
+
'T' could be instantiated with an arbitrary type which could be unrelated to 'FunctionProperties<T>'.
18
+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(104,5): error TS2322: Type 'NonFunctionProperties<T>' is not assignable to type 'T'.
19
+
'T' could be instantiated with an arbitrary type which could be unrelated to 'NonFunctionProperties<T>'.
20
+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(106,5): error TS2322: Type 'NonFunctionProperties<T>' is not assignable to type 'FunctionProperties<T>'.
21
21
Type 'FunctionPropertyNames<T>' is not assignable to type 'NonFunctionPropertyNames<T>'.
22
-
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>>'.
22
+
Type 'keyof T' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
23
+
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
24
+
Type 'string' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
25
+
Type 'keyof T' is not assignable to type 'never'.
26
+
Type 'string | number | symbol' is not assignable to type 'never'.
27
+
Type 'string' is not assignable to type 'never'.
28
+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(108,5): error TS2322: Type 'FunctionProperties<T>' is not assignable to type 'NonFunctionProperties<T>'.
23
29
Type 'NonFunctionPropertyNames<T>' is not assignable to type 'FunctionPropertyNames<T>'.
30
+
Type 'keyof T' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
31
+
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
32
+
Type 'string' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
33
+
Type 'keyof T' is not assignable to type 'never'.
24
34
tests/cases/conformance/types/conditional/conditionalTypes1.ts(114,5): error TS2322: Type 'keyof T' is not assignable to type 'FunctionPropertyNames<T>'.
25
35
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
26
36
Type 'string' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
!!! error TS2322: Type 'Record<"val", "dup">' is not assignable to type 'never'.
42
+
!!! error TS2322: Type 'Value<"dup">' is not assignable to type 'never'.
43
43
!!! related TS6500 tests/cases/compiler/infiniteConstraints.ts:31:43: The expected type comes from property 'main' which is declared here on type '{ main: never; alternate: never; }'
44
44
~~~~~~~~~
45
-
!!! error TS2322: Type 'Record<"val", "dup">' is not assignable to type 'never'.
45
+
!!! error TS2322: Type 'Value<"dup">' is not assignable to type 'never'.
46
46
!!! related TS6500 tests/cases/compiler/infiniteConstraints.ts:31:63: The expected type comes from property 'alternate' which is declared here on type '{ main: never; alternate: never; }'
0 commit comments