From 65fb86a5731ff0b136df866e545b7d3fcb118e47 Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Fri, 4 Apr 2014 15:58:27 +0400 Subject: [PATCH] lodash: improved _.mapValues definitions --- lodash/lodash.d.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 9f186f4336..a4b08242a0 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -3475,14 +3475,10 @@ declare module _ { * @param thisArg `this` object in `iterator`, optional. * @return Returns a new object with values of the results of each callback execution. */ - mapValues( - object: T, - callback: ObjectIterator, - thisArg?: any): Mapped; - - mapValues( - object: T, - pluckValue: string): Mapped; + mapValues(obj: Dictionary, callback: ObjectIterator, thisArg?: any): Dictionary; + mapValues(obj: Dictionary, where: Dictionary): Dictionary; + mapValues(obj: T, pluck: string): TMapped; + mapValues(obj: T, callback: ObjectIterator, thisArg?: any): T; } //_.merge