mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
44 lines
3.4 KiB
Diff
44 lines
3.4 KiB
Diff
--- old.destructuringTuple.errors.txt
|
|
+++ new.destructuringTuple.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
destructuringTuple.ts(11,7): error TS2488: Type 'number' must have a '[Symbol.iterator]()' method that returns an iterator.
|
|
destructuringTuple.ts(11,48): error TS2769: No overload matches this call.
|
|
- Overload 1 of 3, '(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue: number): number', gave the following error.
|
|
- Type 'never[]' is not assignable to type 'number'.
|
|
- Overload 2 of 3, '(callbackfn: (previousValue: [], currentValue: number, currentIndex: number, array: number[]) => [], initialValue: []): []', gave the following error.
|
|
+ The last overload gave the following error.
|
|
Type 'never[]' is not assignable to type '[]'.
|
|
Target allows only 0 element(s) but source may have more.
|
|
destructuringTuple.ts(11,60): error TS2769: No overload matches this call.
|
|
- Overload 1 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
|
|
- Argument of type 'number' is not assignable to parameter of type 'ConcatArray<never>'.
|
|
- Overload 2 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
|
|
+ The last overload gave the following error.
|
|
Argument of type 'number' is not assignable to parameter of type 'ConcatArray<never>'.
|
|
|
|
|
|
@@= skipped -27, +23 lines =@@
|
|
!!! error TS2488: Type 'number' must have a '[Symbol.iterator]()' method that returns an iterator.
|
|
~~~~~~~~~~~~~~~
|
|
!!! error TS2769: No overload matches this call.
|
|
-!!! error TS2769: Overload 1 of 3, '(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: number[]) => number, initialValue: number): number', gave the following error.
|
|
-!!! error TS2769: Type 'never[]' is not assignable to type 'number'.
|
|
-!!! error TS2769: Overload 2 of 3, '(callbackfn: (previousValue: [], currentValue: number, currentIndex: number, array: number[]) => [], initialValue: []): []', gave the following error.
|
|
+!!! error TS2769: The last overload gave the following error.
|
|
!!! error TS2769: Type 'never[]' is not assignable to type '[]'.
|
|
!!! error TS2769: Target allows only 0 element(s) but source may have more.
|
|
!!! related TS6502 lib.es5.d.ts:--:--: The expected type comes from the return type of this signature.
|
|
-!!! related TS6502 lib.es5.d.ts:--:--: The expected type comes from the return type of this signature.
|
|
+!!! related TS2771 lib.es5.d.ts:--:--: The last overload is declared here.
|
|
~~
|
|
!!! error TS2769: No overload matches this call.
|
|
-!!! error TS2769: Overload 1 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
|
|
-!!! error TS2769: Argument of type 'number' is not assignable to parameter of type 'ConcatArray<never>'.
|
|
-!!! error TS2769: Overload 2 of 2, '(...items: ConcatArray<never>[]): never[]', gave the following error.
|
|
-!!! error TS2769: Argument of type 'number' is not assignable to parameter of type 'ConcatArray<never>'.
|
|
+!!! error TS2769: The last overload gave the following error.
|
|
+!!! error TS2769: Argument of type 'number' is not assignable to parameter of type 'ConcatArray<never>'.
|
|
+!!! related TS2771 lib.es5.d.ts:--:--: The last overload is declared here.
|
|
|
|
const [oops2] = [1, 2, 3].reduce((acc: number[], e) => acc.concat(e), []);
|
|
|