diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 28c29ad9d..f8bf3050a 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -7831,6 +7831,38 @@ declare module _ { ): LoDashExplicitObjectWrapper>; } + //_.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( + object: Dictionary, + path: string | Array, + ...args: any[]): any; + } + + interface LoDashImplicitObjectWrapper { + /** + * @see _.invoke + **/ + invoke( + path: string | Array, + ...args: any[]): any; + } + + interface LoDashExplicitObjectWrapper { + /** + * @see _.invoke + **/ + invoke( + path: string | Array, + ...args: any[]): any; + } + //_.invokeMap interface LoDashStatic { /**