mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-01 03:04:32 +00:00
* Updated react-stripe-elements to add missing types
react-stripe-elements:
Added confirmCardPayment() to StripeProps
- a837941298/src/components/inject.js (L25-L25)
Added confirmCardSetup() to StripeProps
- a837941298/src/components/inject.js (L26-L26)
Updated createPaymentMethod() to include new function format
- https://stripe.com/docs/js/payment_intents/create_payment_method#stripe_create_payment_method-paymentMethodData
- https://github.com/stripe/react-stripe-elements/releases/tag/v6.0.0
stripe-v3:
Added new function signature for createPaymentMethod(data: PaymentMethodData)
- https://stripe.com/docs/js/payment_intents/create_payment_method#stripe_create_payment_method-paymentMethodData
Added PaymentMethodData interface
- https://stripe.com/docs/js/payment_intents/create_payment_method#stripe_create_payment_method-paymentMethodData
* Reverted version number and fixed linter issues
Removed use of optional chaining in favor of non-null assertions
Removed prettier formatting as it caused linting errors (additional semi-colons)