Skip to content

Commit

Permalink
fix(in-app-purchase-2): fix ready method signature (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshafiee authored and ihadeed committed May 20, 2018
1 parent e6d4b41 commit a018381
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/@ionic-native/plugins/in-app-purchase-2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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 {}
Expand Down

0 comments on commit a018381

Please sign in to comment.