mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
add _.invoke
This commit is contained in:
Vendored
+32
@@ -7831,6 +7831,38 @@ declare module _ {
|
||||
): LoDashExplicitObjectWrapper<Dictionary<T>>;
|
||||
}
|
||||
|
||||
//_.invoke
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Invokes the method at path of object.
|
||||
* @param object The object to query.
|
||||
* @param path The path of the method to invoke.
|
||||
* @param args The arguments to invoke the method with.
|
||||
**/
|
||||
invoke<TValue>(
|
||||
object: Dictionary<TValue>,
|
||||
path: string | Array<string | number>,
|
||||
...args: any[]): any;
|
||||
}
|
||||
|
||||
interface LoDashImplicitObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.invoke
|
||||
**/
|
||||
invoke(
|
||||
path: string | Array<string | number>,
|
||||
...args: any[]): any;
|
||||
}
|
||||
|
||||
interface LoDashExplicitObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.invoke
|
||||
**/
|
||||
invoke(
|
||||
path: string | Array<string | number>,
|
||||
...args: any[]): any;
|
||||
}
|
||||
|
||||
//_.invokeMap
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user