You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing children into the StripeCheckout component generates an error when using Typescript. I know this is not an intended feature because the documentation states that the component accepts children components.
So I took a quick glance, and apparently there is no type definition for children props in the StripeCheckout interface, hence the error.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.Description
Passing children into the StripeCheckout component generates an error when using Typescript. I know this is not an intended feature because the documentation states that the component accepts children components.
So I took a quick glance, and apparently there is no type definition for children props in the StripeCheckout interface, hence the error.
Here is the diff that solved my problem:
It's a pretty small, easily fixable issue, so I'd like to make a pull request if this isn't already being taken care of.
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: