Skip to content

Commit 135b411

Browse files
authored
Expose AcceleratedCheckoutButtonsProps type (#315)
1 parent b09fd28 commit 135b411

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

modules/@shopify/checkout-sheet-kit/src/components/AcceleratedCheckoutButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ interface VariantProps {
143143
quantity: number;
144144
}
145145

146-
type AcceleratedCheckoutButtonsProps = (CartProps | VariantProps) &
146+
export type AcceleratedCheckoutButtonsProps = (CartProps | VariantProps) &
147147
CommonAcceleratedCheckoutButtonsProps;
148148

149149
interface NativeAcceleratedCheckoutButtonsProps {

modules/@shopify/checkout-sheet-kit/src/index.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ import {CheckoutErrorCode} from './errors.d';
5959
import type {CheckoutCompletedEvent} from './events.d';
6060
import type {CustomEvent, PixelEvent, StandardEvent} from './pixels.d';
6161
import {ApplePayLabel} from './components/AcceleratedCheckoutButtons';
62-
import type {RenderStateChangeEvent} from './components/AcceleratedCheckoutButtons';
62+
import type {
63+
AcceleratedCheckoutButtonsProps,
64+
RenderStateChangeEvent,
65+
} from './components/AcceleratedCheckoutButtons';
6366

6467
const RNShopifyCheckoutSheetKit = NativeModules.ShopifyCheckoutSheetKit;
6568

@@ -477,9 +480,9 @@ export class LifecycleEventParseError extends Error {
477480

478481
// API
479482
export {
483+
AcceleratedCheckoutWallet,
480484
ApplePayContactField,
481485
ApplePayLabel,
482-
AcceleratedCheckoutWallet,
483486
ColorScheme,
484487
ShopifyCheckoutSheet,
485488
ShopifyCheckoutSheetProvider,
@@ -500,18 +503,19 @@ export {
500503

501504
// Types
502505
export type {
506+
AcceleratedCheckoutButtonsProps,
507+
AcceleratedCheckoutConfiguration,
503508
CheckoutCompletedEvent,
504509
CheckoutEvent,
505510
CheckoutEventCallback,
506511
CheckoutException,
507512
Configuration,
508513
CustomEvent,
509-
GeolocationRequestEvent,
510514
Features,
515+
GeolocationRequestEvent,
511516
PixelEvent,
512-
StandardEvent,
513-
AcceleratedCheckoutConfiguration,
514517
RenderStateChangeEvent,
518+
StandardEvent,
515519
};
516520

517521
// Components

0 commit comments

Comments
 (0)