From 0b43c6999372f5eb49506b5782229eda08833c59 Mon Sep 17 00:00:00 2001 From: San Leen Date: Fri, 18 Oct 2019 13:13:51 +0800 Subject: [PATCH] fix(wechat): add missing cordova decorators (#3195) fix wechat plugin --- src/@ionic-native/plugins/wechat/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@ionic-native/plugins/wechat/index.ts b/src/@ionic-native/plugins/wechat/index.ts index 1c104a452..b9d382791 100644 --- a/src/@ionic-native/plugins/wechat/index.ts +++ b/src/@ionic-native/plugins/wechat/index.ts @@ -92,6 +92,7 @@ export class Wechat extends IonicNativePlugin { * this.wechat.auth.then((res) => { alert(res.code); }); * */ + @Cordova() auth(scope: any, state: any): Promise { return; } @@ -116,6 +117,7 @@ export class Wechat extends IonicNativePlugin { * }); * */ + @Cordova() sendPaymentRequest(params: any): Promise { return; } @@ -143,6 +145,7 @@ export class Wechat extends IonicNativePlugin { * }); * */ + @Cordova() jumpToWechat(url: string): Promise { return; } @@ -160,6 +163,7 @@ export class Wechat extends IonicNativePlugin { * }); * */ + @Cordova() chooseInvoiceFromWX(params: any): Promise { return; }