From 8bbcaba755558bcfb4a3fd3bb3542f9efcfb9971 Mon Sep 17 00:00:00 2001 From: k2o <11086104+ksugawara61@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:34:15 +0900 Subject: [PATCH] fix: update TS definitions for purchase methods (#2509) This PR fixed TS definitions for requestPurchase and requestSubscription functions. Ensured that the return values align with the expected types. - Referece https://github.com/dooboolab-community/react-native-iap/issues/2426 - Closes #2426 Co-authored-by: ksugawara61 --- src/iap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iap.ts b/src/iap.ts index 8279708fe..ca0419704 100644 --- a/src/iap.ts +++ b/src/iap.ts @@ -576,7 +576,7 @@ const App = () => { export const requestPurchase = ( request: RequestPurchase, -): Promise => +): Promise => ( Platform.select({ ios: async () => { @@ -732,7 +732,7 @@ const App = () => { */ export const requestSubscription = ( request: RequestSubscription, -): Promise => +): Promise => ( Platform.select({ ios: async () => {