Skip to content

Commit ba5f2c1

Browse files
refactor: update type exports to use ShopifyCheckout naming convention
1 parent 6614fed commit ba5f2c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export type {
530530
AcceleratedCheckoutButtonsProps,
531531
RenderStateChangeEvent,
532532
} from './components/AcceleratedCheckoutButtons';
533-
export type {ShopifyCheckoutProps as CheckoutProps, ShopifyCheckoutRef as CheckoutRef} from './components/Checkout';
533+
export type {ShopifyCheckoutProps, ShopifyCheckoutRef} from './components/Checkout';
534534
export type {ShopifyCheckoutEventProviderProps} from './ShopifyCheckoutEventProvider';
535535

536536
// Components

sample/src/screens/BuyNow/CheckoutScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
type CheckoutAddressChangeStart,
2626
type CheckoutCompleteEvent,
2727
type CheckoutPaymentMethodChangeStart,
28-
type CheckoutRef,
28+
type ShopifyCheckoutRef,
2929
type CheckoutStartEvent,
3030
type CheckoutSubmitStart,
3131
useCheckoutEvents,
@@ -39,7 +39,7 @@ export default function CheckoutScreen(props: {
3939
route: RouteProp<BuyNowStackParamList, 'Checkout'>;
4040
}) {
4141
const navigation = useNavigation<NavigationProp<BuyNowStackParamList>>();
42-
const ref = useRef<CheckoutRef>(null);
42+
const ref = useRef<ShopifyCheckoutRef>(null);
4343
const eventContext = useCheckoutEvents();
4444

4545
const onStart = (event: CheckoutStartEvent) => {

0 commit comments

Comments
 (0)