fix(wechat): add missing cordova decorators (#3195)

fix wechat plugin
This commit is contained in:
San Leen 2019-10-18 13:13:51 +08:00 committed by Daniel Sogl
parent fb5d47bff2
commit 0b43c69993

View File

@ -92,6 +92,7 @@ export class Wechat extends IonicNativePlugin {
* this.wechat.auth.then((res) => { alert(res.code); }); * this.wechat.auth.then((res) => { alert(res.code); });
* </code> * </code>
*/ */
@Cordova()
auth(scope: any, state: any): Promise<any> { auth(scope: any, state: any): Promise<any> {
return; return;
} }
@ -116,6 +117,7 @@ export class Wechat extends IonicNativePlugin {
* }); * });
* </code> * </code>
*/ */
@Cordova()
sendPaymentRequest(params: any): Promise<any> { sendPaymentRequest(params: any): Promise<any> {
return; return;
} }
@ -143,6 +145,7 @@ export class Wechat extends IonicNativePlugin {
* }); * });
* </code> * </code>
*/ */
@Cordova()
jumpToWechat(url: string): Promise<any> { jumpToWechat(url: string): Promise<any> {
return; return;
} }
@ -160,6 +163,7 @@ export class Wechat extends IonicNativePlugin {
* }); * });
* </code> * </code>
*/ */
@Cordova()
chooseInvoiceFromWX(params: any): Promise<any> { chooseInvoiceFromWX(params: any): Promise<any> {
return; return;
} }