fix(in-app-purchase-2): fix ready method signature (#2043)

This commit is contained in:
Behrooz Shafiee 2018-05-20 13:21:21 -04:00 committed by Ibby Hadeed
parent e6d4b41e7e
commit a0183811f6

View File

@ -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<any>} returns a promise that resolves when the store is ready
*/
@Cordova()
ready(): Promise<void> { return; }
ready(callback: Function): void { return; }
@Cordova({ sync: true })
refresh(): void {}