Removed generic type from Reduced

This commit is contained in:
Erwin Poeze
2016-08-24 16:26:52 +02:00
parent d7aa273c75
commit 9c5f574dd8
+5 -5
View File
@@ -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