main.d.ts: fix `[].reduce` types

pull/3565/head
Rob Pilling 2024-10-10 20:02:27 +01:00
parent f581e15320
commit b2e788683a
1 changed files with 1 additions and 1 deletions

View File

@ -10229,7 +10229,7 @@ interface Array<T> {
* @returns {any} The value returned by the last function called
* @url http://www.espruino.com/Reference#l_Array_reduce
*/
reduce(callback: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
reduce<O>(callback: (previousValue: O, currentValue: T, currentIndex: number, array: T[]) => O, initialValue?: O): O;
/**
* Both remove and add items to an array