From 1fc09098fe4b7c8d291c09ed5ecfa1b11f8c599d Mon Sep 17 00:00:00 2001 From: Eliran Elnasi Date: Mon, 17 Jun 2019 15:52:19 +0300 Subject: [PATCH] fix(in-app-purchase-2): add missing option to register function (#3063) * Update TS type for register() method It should accept also a list of IAPProductOptions * Update index.ts --- src/@ionic-native/plugins/in-app-purchase-2/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 637954722..dbc198cf4 100644 --- a/src/@ionic-native/plugins/in-app-purchase-2/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase-2/index.ts @@ -761,7 +761,7 @@ export class InAppPurchase2 extends IonicNativePlugin { * @param product {IAPProductOptions} */ @Cordova({ sync: true }) - register(product: IAPProductOptions): void {} + register(product: IAPProductOptions | IAPProductOptions[]): void {} /** *