Skip to content

Commit

Permalink
fix: requestPurchase and requestSubscription return value TS definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ksugawara61 committed Aug 4, 2023
1 parent 6b5eb41 commit e15c7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ const App = () => {

export const requestPurchase = (
request: RequestPurchase,
): Promise<ProductPurchase | void> =>
): Promise<ProductPurchase | ProductPurchase[] | void> =>
(
Platform.select({
ios: async () => {
Expand Down Expand Up @@ -732,7 +732,7 @@ const App = () => {
*/
export const requestSubscription = (
request: RequestSubscription,
): Promise<SubscriptionPurchase | null | void> =>
): Promise<SubscriptionPurchase | SubscriptionPurchase[] | null | void> =>
(
Platform.select({
ios: async () => {
Expand Down

0 comments on commit e15c7f7

Please sign in to comment.