From 37ae2de2a11eac6fc4584ea0b79b142f64f9874e Mon Sep 17 00:00:00 2001 From: Zachary Brown Date: Mon, 6 Jun 2016 22:58:23 -0700 Subject: [PATCH] Updated existing cordova.exec method signature. Documentation reference for change context: https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html#the-javascript-interface --- cordova/cordova.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cordova/cordova.d.ts b/cordova/cordova.d.ts index 24adab6928..a830fa4881 100644 --- a/cordova/cordova.d.ts +++ b/cordova/cordova.d.ts @@ -35,7 +35,7 @@ interface Cordova { * @param action The action name to call on the native side (generally corresponds to the native class method). * @param args An array of arguments to pass into the native environment. */ - exec(success: () => any, fail: () => any, service: string, action: string, args?: any[]): void; + exec(success: (data: any) => any, fail: (err: any) => any, service: string, action: string, args?: any[]): void; /** Gets the operating system name. */ platformId: string; /** Gets Cordova framework version */