From a0183811f688cb729302d394807525430eeba251 Mon Sep 17 00:00:00 2001 From: Behrooz Shafiee Date: Sun, 20 May 2018 13:21:21 -0400 Subject: [PATCH] fix(in-app-purchase-2): fix ready method signature (#2043) --- src/@ionic-native/plugins/in-app-purchase-2/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/@ionic-native/plugins/in-app-purchase-2/index.ts b/src/@ionic-native/plugins/in-app-purchase-2/index.ts index 46436d642..a4cde33a3 100644 --- a/src/@ionic-native/plugins/in-app-purchase-2/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase-2/index.ts @@ -46,7 +46,7 @@ import { Injectable } from '@angular/core'; * alert('Store Error ' + JSON.stringify(err)); * }); * - * this.store.ready().then((status) => { + * this.store.ready(() => { * console.log(JSON.stringify(this.store.get(productId))); * console.log('Store is Ready: ' + JSON.stringify(status)); * console.log('Products: ' + JSON.stringify(this.store.products)); @@ -416,12 +416,8 @@ export class InAppPurchase2 extends IonicNativePlugin { @Cordova({ sync: true }) order(product: string | IAPProduct, additionalData?: any): { then: Function; error: Function; } { return; } - /** - * - * @return {Promise} returns a promise that resolves when the store is ready - */ @Cordova() - ready(): Promise { return; } + ready(callback: Function): void { return; } @Cordova({ sync: true }) refresh(): void {}