From 60ecc1bb40a5b2e9de3f2a0e835961465ba29b5f Mon Sep 17 00:00:00 2001 From: Jacob Eggers Date: Fri, 25 Aug 2017 09:13:04 -0700 Subject: [PATCH] Adding _.mapValues to v3 --- types/lodash/v3/index.d.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/types/lodash/v3/index.d.ts b/types/lodash/v3/index.d.ts index b4e9f78ab8..aba8a60fe4 100644 --- a/types/lodash/v3/index.d.ts +++ b/types/lodash/v3/index.d.ts @@ -13727,6 +13727,29 @@ declare module _ { mapValues(where: Dictionary): LoDashImplicitArrayWrapper; } + interface LoDashExplicitObjectWrapperBase { + /** + * @see _.mapValues + * TValue is the type of the property values of T. + * TResult is the type output by the ObjectIterator function + */ + mapValues(callback: ObjectIterator): LoDashExplicitObjectWrapper>; + + /** + * @see _.mapValues + * TResult is the type of the property specified by pluck. + * T should be a Dictionary> + */ + mapValues(pluck: string): LoDashExplicitObjectWrapper>; + + /** + * @see _.mapValues + * TResult is the type of the properties of each object in the values of T + * T should be a Dictionary> + */ + mapValues(where: Dictionary): LoDashExplicitObjectWrapper; + } + //_.merge interface MergeCustomizer { (value: any, srcValue: any, key?: string, object?: Object, source?: Object): any;