mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
add _.invoke
This commit is contained in:
1 parent
6766ed1d0f
commit
b352f98ef9
1 file changed
+32
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