Merge pull request #8186 from wrrnwng/master

Lodash: added NumericDictionary parameter to map and reduce
This commit is contained in:
Masahiro Wakame
2016-02-21 02:33:30 +09:00
+25 -2
View File
@@ -7997,11 +7997,17 @@ declare module _ {
thisArg?: any
): TResult[];
map<T extends {}, TResult>(
collection: NumericDictionary<T>,
iteratee?: NumericDictionaryIterator<T, TResult>,
thisArg?: any
): TResult[];
/**
* @see _.map
*/
map<T, TResult>(
collection: List<T>|Dictionary<T>,
collection: List<T>|Dictionary<T>|NumericDictionary<T>,
iteratee?: string
): TResult[];
@@ -8009,7 +8015,7 @@ declare module _ {
* @see _.map
*/
map<T, TObject extends {}>(
collection: List<T>|Dictionary<T>,
collection: List<T>|Dictionary<T>|NumericDictionary<T>,
iteratee?: TObject
): boolean[];
}
@@ -8296,6 +8302,15 @@ declare module _ {
accumulator: TResult,
thisArg?: any): TResult;
/**
* @see _.reduce
**/
reduce<T, TResult>(
collection: NumericDictionary<T>,
callback: MemoIterator<T, TResult>,
accumulator: TResult,
thisArg?: any): TResult;
/**
* @see _.reduce
**/
@@ -8320,6 +8335,14 @@ declare module _ {
callback: MemoIterator<T, TResult>,
thisArg?: any): TResult;
/**
* @see _.reduce
**/
reduce<T, TResult>(
collection: NumericDictionary<T>,
callback: MemoIterator<T, TResult>,
thisArg?: any): TResult;
}
interface LoDashImplicitArrayWrapper<T> {