Skip to content

Commit 28ae416

Browse files
committed
Fixed formatting
1 parent cbfaa8b commit 28ae416

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

guest-js/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export interface PurchaseOptions {
140140
/**
141141
* Initialize the IAP plugin.
142142
* Must be called before any other IAP operations.
143-
*
143+
*
144144
* @returns Promise resolving to initialization status
145145
* @example
146146
* ```typescript
@@ -156,7 +156,7 @@ export async function initialize(): Promise<InitializeResponse> {
156156

157157
/**
158158
* Fetch product information from the app store.
159-
*
159+
*
160160
* @param productIds - Array of product identifiers to fetch
161161
* @param productType - Type of products: "subs" for subscriptions, "inapp" for one-time purchases
162162
* @returns Promise resolving to product information
@@ -182,7 +182,7 @@ export async function getProducts(
182182

183183
/**
184184
* Initiate a purchase for the specified product.
185-
*
185+
*
186186
* @param productId - Product identifier to purchase
187187
* @param productType - Type of product: "subs" or "inapp"
188188
* @param options - Optional purchase parameters (platform-specific)
@@ -191,12 +191,12 @@ export async function getProducts(
191191
* ```typescript
192192
* // Simple purchase
193193
* const purchase = await purchase('com.example.premium', 'subs');
194-
*
194+
*
195195
* // With options (iOS)
196196
* const purchase = await purchase('com.example.premium', 'subs', {
197197
* appAccountToken: '550e8400-e29b-41d4-a716-446655440000' // Must be valid UUID
198198
* });
199-
*
199+
*
200200
* // With options (Android)
201201
* const purchase = await purchase('com.example.premium', 'subs', {
202202
* offerToken: 'offer_token_here',
@@ -221,7 +221,7 @@ export async function purchase(
221221

222222
/**
223223
* Restore user's previous purchases.
224-
*
224+
*
225225
* @param productType - Type of products to restore: "subs" or "inapp"
226226
* @returns Promise resolving to list of restored purchases
227227
* @example
@@ -248,7 +248,7 @@ export async function restorePurchases(
248248
/**
249249
* Get the user's purchase history.
250250
* Note: Not supported on all platforms.
251-
*
251+
*
252252
* @returns Promise resolving to purchase history
253253
* @example
254254
* ```typescript
@@ -268,7 +268,7 @@ export async function getPurchaseHistory(): Promise<GetPurchaseHistoryResponse>
268268
* Acknowledge a purchase (Android only).
269269
* Purchases must be acknowledged within 3 days or they will be refunded.
270270
* iOS automatically acknowledges purchases.
271-
*
271+
*
272272
* @param purchaseToken - Purchase token from the transaction
273273
* @returns Promise resolving to acknowledgment status
274274
* @example
@@ -295,7 +295,7 @@ export async function acknowledgePurchase(
295295
/**
296296
* Get the current status of a product for the user.
297297
* Checks if the product is owned, expired, or available for purchase.
298-
*
298+
*
299299
* @param productId - Product identifier to check
300300
* @param productType - Type of product: "subs" or "inapp"
301301
* @returns Promise resolving to product status
@@ -325,7 +325,7 @@ export async function getProductStatus(
325325
/**
326326
* Listen for purchase updates.
327327
* This event is triggered when a purchase state changes.
328-
*
328+
*
329329
* @param callback - Function to call when a purchase is updated
330330
* @returns Cleanup function to stop listening
331331
* @example
@@ -336,7 +336,7 @@ export async function getProductStatus(
336336
* // Handle successful purchase
337337
* }
338338
* });
339-
*
339+
*
340340
* // Later, stop listening
341341
* unsubscribe();
342342
* ```

0 commit comments

Comments
 (0)