File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "apple" : " 1.2.31" ,
33 "google" : " 1.3.4" ,
4- "gql" : " 1.2.4 "
4+ "gql" : " 1.2.5 "
55}
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ export interface ExternalPurchaseNoticeResultIOS {
166166 result : ExternalPurchaseNoticeAction ;
167167}
168168
169- export type FetchProductsResult = Product [ ] | ProductSubscription [ ] | null ;
169+ export type FetchProductsResult = ProductOrSubscription [ ] | Product [ ] | ProductSubscription [ ] | null ;
170170
171171export type IapEvent = 'purchase-updated' | 'purchase-error' | 'promoted-product-ios' | 'user-choice-billing-android' ;
172172
@@ -354,6 +354,8 @@ export interface ProductIOS extends ProductCommon {
354354 typeIOS : ProductTypeIOS ;
355355}
356356
357+ export type ProductOrSubscription = Product | ProductSubscription ;
358+
357359export type ProductQueryType = 'in-app' | 'subs' | 'all' ;
358360
359361export interface ProductRequest {
@@ -526,7 +528,7 @@ export interface Query {
526528 /** Get current StoreKit 2 entitlements (iOS 15+) */
527529 currentEntitlementIOS ?: Promise < ( PurchaseIOS | null ) > ;
528530 /** Retrieve products or subscriptions from the store */
529- fetchProducts : Promise < ( Product [ ] | ProductSubscription [ ] | null ) > ;
531+ fetchProducts : Promise < ( ProductOrSubscription [ ] | Product [ ] | ProductSubscription [ ] | null ) > ;
530532 /** Get active subscriptions (filters by subscriptionIds when provided) */
531533 getActiveSubscriptions : Promise < ActiveSubscription [ ] > ;
532534 /** Fetch the current app transaction (iOS 16+) */
You can’t perform that action at this time.
0 commit comments