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/tuple/arityAndOrderCompatibility01.ts(15,5): error TS2461: Type '{ 0: string; 1: number; }' is not an array type.
4
4
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(15,12): error TS2460: Type '{ 0: string; 1: number; }' has no property '2'.
5
5
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(16,5): error TS2322: Type '[string, number]' is not assignable to type '[number, number, number]'.
6
-
Types of property '0' are incompatible.
7
-
Type 'string' is not assignable to type 'number'.
6
+
Property '2' is missing in type '[string, number]'.
8
7
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(17,5): error TS2322: Type 'StrNum' is not assignable to type '[number, number, number]'.
9
-
Types of property '0' are incompatible.
10
-
Type 'string' is not assignable to type 'number'.
8
+
Property '2' is missing in type 'StrNum'.
11
9
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(18,5): error TS2322: Type '{ 0: string; 1: number; }' is not assignable to type '[number, number, number]'.
12
-
Types of property '0' are incompatible.
13
-
Type 'string' is not assignable to type 'number'.
10
+
Property '2' is missing in type '{ 0: string; 1: number; }'.
14
11
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(19,5): error TS2322: Type '[string, number]' is not assignable to type '[string, number, number]'.
15
12
Property '2' is missing in type '[string, number]'.
16
13
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(20,5): error TS2322: Type 'StrNum' is not assignable to type '[string, number, number]'.
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(24,5): error TS2322: Type '{ 0: string; 1: number; }' is not assignable to type '[number]'.
27
-
Types of property '0' are incompatible.
28
-
Type 'string' is not assignable to type 'number'.
24
+
Property 'length' is missing in type '{ 0: string; 1: number; }'.
29
25
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(25,5): error TS2322: Type '[string, number]' is not assignable to type '[string]'.
30
26
Types of property 'pop' are incompatible.
31
27
Type '() => string | number' is not assignable to type '() => string'.
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(30,5): error TS2322: Type '{ 0: string; 1: number; }' is not assignable to type '[number, string]'.
47
-
Types of property '0' are incompatible.
48
-
Type 'string' is not assignable to type 'number'.
43
+
Property 'length' is missing in type '{ 0: string; 1: number; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/promisePermutations.errors.txt
+2-10Lines changed: 2 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -48,11 +48,7 @@ tests/cases/compiler/promisePermutations.ts(144,35): error TS2345: Argument of t
48
48
Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
49
49
tests/cases/compiler/promisePermutations.ts(152,36): error TS2345: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
50
50
Type 'IPromise<string>' is not assignable to type 'Promise<number>'.
Types of parameters 'success' and 'onfulfilled' are incompatible.
54
-
Types of parameters 'value' and 'value' are incompatible.
55
-
Type 'string' is not assignable to type 'number'.
51
+
Property 'catch' is missing in type 'IPromise<string>'.
56
52
tests/cases/compiler/promisePermutations.ts(156,21): error TS2345: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
57
53
Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
58
54
Type 'number' is not assignable to type 'string'.
@@ -302,11 +298,7 @@ tests/cases/compiler/promisePermutations.ts(160,21): error TS2345: Argument of t
302
298
~~~~~~~~~
303
299
!!! error TS2345: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
304
300
!!! error TS2345: Type 'IPromise<string>' is not assignable to type 'Promise<number>'.
305
-
!!! error TS2345: Types of property 'then' are incompatible.
Copy file name to clipboardExpand all lines: tests/baselines/reference/promisePermutations2.errors.txt
+2-10Lines changed: 2 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -48,11 +48,7 @@ tests/cases/compiler/promisePermutations2.ts(143,35): error TS2345: Argument of
48
48
Type 'IPromise<string>' is not assignable to type 'IPromise<number>'.
49
49
tests/cases/compiler/promisePermutations2.ts(151,36): error TS2345: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
50
50
Type 'IPromise<string>' is not assignable to type 'Promise<number>'.
Types of parameters 'success' and 'onfulfilled' are incompatible.
54
-
Types of parameters 'value' and 'value' are incompatible.
55
-
Type 'string' is not assignable to type 'number'.
51
+
Property 'catch' is missing in type 'IPromise<string>'.
56
52
tests/cases/compiler/promisePermutations2.ts(155,21): error TS2345: Argument of type '{ (x: number): IPromise<number>; (x: string): IPromise<string>; }' is not assignable to parameter of type '(value: number) => IPromise<string>'.
57
53
Type 'IPromise<number>' is not assignable to type 'IPromise<string>'.
58
54
Type 'number' is not assignable to type 'string'.
@@ -301,11 +297,7 @@ tests/cases/compiler/promisePermutations2.ts(159,21): error TS2345: Argument of
301
297
~~~~~~~~~
302
298
!!! error TS2345: Argument of type '(x: any) => IPromise<string>' is not assignable to parameter of type '(error: any) => Promise<number>'.
303
299
!!! error TS2345: Type 'IPromise<string>' is not assignable to type 'Promise<number>'.
304
-
!!! error TS2345: Types of property 'then' are incompatible.
0 commit comments