From c13a53ad45aec4704d6a761ecf4a8238db7a6fa9 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Wed, 11 Apr 2018 12:32:16 -0400 Subject: [PATCH] Set explicit types --- src/@ionic-native/core/decorators/common.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/core/decorators/common.ts b/src/@ionic-native/core/decorators/common.ts index f9a77ac59..11cefd296 100644 --- a/src/@ionic-native/core/decorators/common.ts +++ b/src/@ionic-native/core/decorators/common.ts @@ -424,7 +424,7 @@ export const wrap = function ( pluginObj: any, methodName: string, opts: CordovaOptions = {} -) { +): Function { return (...args: any[]) => { if (opts.sync) { // Sync doesn't wrap the plugin with a promise or observable, it returns the result as-is @@ -448,7 +448,7 @@ export function wrapInstance( pluginObj: any, methodName: string, opts: any = {} -) { +): Function { return (...args: any[]) => { if (opts.sync) { return callInstance(pluginObj, methodName, args, opts);