mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Adding _.mapValues to v3
This commit is contained in:
23
types/lodash/v3/index.d.ts
vendored
23
types/lodash/v3/index.d.ts
vendored
@@ -13727,6 +13727,29 @@ declare module _ {
|
||||
mapValues<TResult>(where: Dictionary<TResult>): LoDashImplicitArrayWrapper<boolean>;
|
||||
}
|
||||
|
||||
interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> {
|
||||
/**
|
||||
* @see _.mapValues
|
||||
* TValue is the type of the property values of T.
|
||||
* TResult is the type output by the ObjectIterator function
|
||||
*/
|
||||
mapValues<TValue, TResult>(callback: ObjectIterator<TValue, TResult>): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
|
||||
|
||||
/**
|
||||
* @see _.mapValues
|
||||
* TResult is the type of the property specified by pluck.
|
||||
* T should be a Dictionary<Dictionary<TResult>>
|
||||
*/
|
||||
mapValues<TResult>(pluck: string): LoDashExplicitObjectWrapper<Dictionary<TResult>>;
|
||||
|
||||
/**
|
||||
* @see _.mapValues
|
||||
* TResult is the type of the properties of each object in the values of T
|
||||
* T should be a Dictionary<Dictionary<TResult>>
|
||||
*/
|
||||
mapValues<TResult>(where: Dictionary<TResult>): LoDashExplicitObjectWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.merge
|
||||
interface MergeCustomizer {
|
||||
(value: any, srcValue: any, key?: string, object?: Object, source?: Object): any;
|
||||
|
||||
Reference in New Issue
Block a user