From e77738021c9fdd3fb9e7ea7cf9159a5070829e44 Mon Sep 17 00:00:00 2001 From: Polo Li <65737086+pololi-stripe@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:01:35 -0800 Subject: [PATCH] Fix updateShippingOption response type (#689) --- types/stripe-js/checkout.d.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/types/stripe-js/checkout.d.ts b/types/stripe-js/checkout.d.ts index c97fc64..7851521 100644 --- a/types/stripe-js/checkout.d.ts +++ b/types/stripe-js/checkout.d.ts @@ -233,10 +233,6 @@ export interface StripeCheckoutSession { total: StripeCheckoutTotalSummary; } -export type StripeCheckoutResult = - | {session: StripeCheckoutSession; error?: undefined} - | {session?: undefined; error: StripeError}; - export type StripeCheckoutPaymentElementOptions = { layout?: Layout | LayoutObject; paymentMethodOrder?: Array; @@ -448,7 +444,7 @@ export interface StripeCheckout { }) => Promise; updateShippingOption: ( shippingOption: string - ) => Promise; + ) => Promise; confirm: (args?: { returnUrl?: string; redirect?: StripeCheckoutRedirectBehavior;