mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
Merge dca457aa71 into 340a884957
This commit is contained in:
28
lodash/lodash.d.ts
vendored
28
lodash/lodash.d.ts
vendored
@@ -3457,6 +3457,34 @@ declare module _ {
|
||||
keys(object: any): string[];
|
||||
}
|
||||
|
||||
//_.mapValues
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Creates an object with the same keys as object and values generated by running each own
|
||||
* enumerable property of object through the callback. The callback is bound to thisArg and
|
||||
* invoked with three arguments; (value, key, object).
|
||||
*
|
||||
* If a property name is provided for callback the created "_.pluck" style callback will return
|
||||
* the property value of the given element.
|
||||
*
|
||||
* If an object is provided for callback the created "_.where" style callback will return true
|
||||
* for elements that have the properties of the given object, else false.
|
||||
*
|
||||
* @param object The object to iterate over.
|
||||
* @param callback The function called per iteration.
|
||||
* @param thisArg `this` object in `iterator`, optional.
|
||||
* @return Returns a new object with values of the results of each callback execution.
|
||||
*/
|
||||
mapValues<Mapped, T>(
|
||||
object: T,
|
||||
callback: ObjectIterator<any, any>,
|
||||
thisArg?: any): Mapped;
|
||||
|
||||
mapValues<Mapped, T>(
|
||||
object: T,
|
||||
pluckValue: string): Mapped;
|
||||
}
|
||||
|
||||
//_.merge
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user