Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: automatic_async does not exist in captureMethod of StripeElementsUpdateOptions #677

Open
hir0o opened this issue Nov 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hir0o
Copy link

hir0o commented Nov 8, 2024

What happened?

captureMethod can be 'manual', 'automatic', or 'automatic_async', but only 'manual' and 'automatic' exist.

https://github.com/stripe/stripe-js/blob/master/types/stripe-js/elements-group.d.ts#L722

Environment

No response

Reproduction

No response

@hir0o hir0o added the bug Something isn't working label Nov 8, 2024
@brendanm-stripe
Copy link
Contributor

Hey there, you're quite right the type is missing an option and I've reported this to the Elements team to extend the type.

In the meantime, the actual value is supported and works as expected, so you can use that and temporarily use ts-ignore or ts-expect-error in the interim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants