Skip to content

Commit

Permalink
Extend ButtonThemeOption type (#620)
Browse files Browse the repository at this point in the history
* Extend ButtonThemeOption type

Type extended according to documentation
https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-buttonTheme

* prettier

---------

Co-authored-by: mrsnow070 <mrsnow070@gmail.com>
  • Loading branch information
awalker-stripe and mrsnow070 authored Jun 6, 2024
1 parent 9f34582 commit 27f3637
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/stripe-js/elements/express-checkout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,12 @@ export type ApplePayButtonTheme = 'black' | 'white' | 'white-outline';

export type GooglePayButtonTheme = 'black' | 'white';

export type PayPalButtonTheme = 'gold' | 'blue' | 'silver' | 'white' | 'black';

export type ButtonThemeOption = {
applePay?: ApplePayButtonTheme;
googlePay?: GooglePayButtonTheme;
paypal?: PayPalButtonTheme;
};

export type ApplePayButtonType =
Expand Down

0 comments on commit 27f3637

Please sign in to comment.