From 5d6648e218a663eff957523becd04f9042dbdd3b Mon Sep 17 00:00:00 2001 From: Jonathan Sheely Date: Mon, 25 Sep 2017 15:20:55 -0400 Subject: [PATCH] mapValues can accept a single param and output entire object (#19786) --- types/lodash/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index 301f4d8b66..0d54e31678 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -16222,7 +16222,7 @@ declare namespace _ { */ mapValues(obj: Dictionary | null | undefined, callback: ObjectIterator): Dictionary; mapValues(obj: Dictionary | null | undefined, where: Dictionary): Dictionary; - mapValues(obj: T | null | undefined, pluck: string): TMapped; + mapValues(obj: T | null | undefined, pluck?: string): TMapped; mapValues(obj: T | null | undefined, callback: ObjectIterator): T; } @@ -16239,7 +16239,7 @@ declare namespace _ { * TResult is the type of the property specified by pluck. * T should be a Dictionary> */ - mapValues(pluck: string): LoDashImplicitObjectWrapper>; + mapValues(pluck?: string): LoDashImplicitObjectWrapper>; /** * @see _.mapValues @@ -16262,7 +16262,7 @@ declare namespace _ { * TResult is the type of the property specified by pluck. * T should be a Dictionary> */ - mapValues(pluck: string): LoDashExplicitObjectWrapper>; + mapValues(pluck?: string): LoDashExplicitObjectWrapper>; /** * @see _.mapValues