mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Merge pull request #8186 from wrrnwng/master
Lodash: added NumericDictionary parameter to map and reduce
This commit is contained in:
Vendored
+25
-2
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user