From b352f98ef91ee1199ee639641613b8af8a68ab50 Mon Sep 17 00:00:00 2001 From: Ben Blank Date: Mon, 21 Mar 2016 09:58:26 -0700 Subject: [PATCH] add _.invoke --- lodash/lodash.d.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) 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 { /**