From b6e4a8d51a20a9a3ad73d50ccf688d737d473788 Mon Sep 17 00:00:00 2001 From: Warren Wong Date: Fri, 19 Feb 2016 14:56:41 -0800 Subject: [PATCH 1/2] add NumericDictionary to lodash _.map parameter --- lodash/lodash.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 6618209cb..579ffd929 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -7997,11 +7997,17 @@ declare module _ { thisArg?: any ): TResult[]; + map( + collection: NumericDictionary, + iteratee?: NumericDictionaryIterator, + thisArg?: any + ): TResult[]; + /** * @see _.map */ map( - collection: List|Dictionary, + collection: List|Dictionary|NumericDictionary, iteratee?: string ): TResult[]; @@ -8009,7 +8015,7 @@ declare module _ { * @see _.map */ map( - collection: List|Dictionary, + collection: List|Dictionary|NumericDictionary, iteratee?: TObject ): boolean[]; } From b52524f205340d85fece884b5accb05490f5b0a8 Mon Sep 17 00:00:00 2001 From: Warren Wong Date: Fri, 19 Feb 2016 15:34:59 -0800 Subject: [PATCH 2/2] add NumericDictionary to lodash _.reduce parameter --- lodash/lodash.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 579ffd929..a230e9934 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -8302,6 +8302,15 @@ declare module _ { accumulator: TResult, thisArg?: any): TResult; + /** + * @see _.reduce + **/ + reduce( + collection: NumericDictionary, + callback: MemoIterator, + accumulator: TResult, + thisArg?: any): TResult; + /** * @see _.reduce **/ @@ -8326,6 +8335,14 @@ declare module _ { callback: MemoIterator, thisArg?: any): TResult; + /** + * @see _.reduce + **/ + reduce( + collection: NumericDictionary, + callback: MemoIterator, + thisArg?: any): TResult; + } interface LoDashImplicitArrayWrapper {