mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
Removed generic type from Reduced
This commit is contained in:
Vendored
+5
-5
@@ -107,7 +107,7 @@ declare namespace R {
|
||||
(t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6): R;
|
||||
}
|
||||
|
||||
interface Reduced<T> {}
|
||||
interface Reduced {}
|
||||
|
||||
interface Static {
|
||||
|
||||
@@ -1300,9 +1300,9 @@ declare namespace R {
|
||||
* function and passing it an accumulator value and the current value from the array, and
|
||||
* then passing the result to the next call.
|
||||
*/
|
||||
reduce<T, TResult>(fn: (acc: TResult, elem: T) => TResult|Reduced<TResult>, acc: TResult, list: T[]): TResult;
|
||||
reduce<T, TResult>(fn: (acc: TResult, elem: T) => TResult|Reduced<TResult>): (acc: TResult, list: T[]) => TResult;
|
||||
reduce<T, TResult>(fn: (acc: TResult, elem: T) => TResult|Reduced<TResult>, acc: TResult): (list: T[]) => TResult;
|
||||
reduce<T, TResult>(fn: (acc: TResult, elem: T) => TResult|Reduced, acc: TResult, list: T[]): TResult;
|
||||
reduce<T, TResult>(fn: (acc: TResult, elem: T) => TResult|Reduced): (acc: TResult, list: T[]) => TResult;
|
||||
reduce<T, TResult>(fn: (acc: TResult, elem: T) => TResult|Reduced, acc: TResult): (list: T[]) => TResult;
|
||||
|
||||
/**
|
||||
* Groups the elements of the list according to the result of calling the String-returning function keyFn on each
|
||||
@@ -1318,7 +1318,7 @@ declare namespace R {
|
||||
* transduce functions. The returned value should be considered a black box: the internal
|
||||
* structure is not guaranteed to be stable.
|
||||
*/
|
||||
reduced<T>(elem: T): Reduced<T>;
|
||||
reduced<T>(elem: T): Reduced;
|
||||
|
||||
/**
|
||||
* Returns a single item by iterating through the list, successively calling the iterator
|
||||
|
||||
Reference in New Issue
Block a user