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

Property 'StripeResource' does not exist on type 'Stripe' #994

Closed
RDGthree opened this issue Sep 7, 2020 · 0 comments · Fixed by #1011
Closed

Property 'StripeResource' does not exist on type 'Stripe' #994

RDGthree opened this issue Sep 7, 2020 · 0 comments · Fixed by #1011
Assignees

Comments

@RDGthree
Copy link

RDGthree commented Sep 7, 2020

#920 - PR where StripeResource was exposed.

Looks like this was intentionally merged without a typedef, but I'd personally prefer having this typed as any - alternative being littering the code with @ts-ignore for the time being. Generally we try to avoid @ts-ignore over here just so that Typescript will start yelling at us when types are eventually added.

If there's some clean way for me to cast it to any that I'm not thinking about, that would be fine too - the discussion in the PR makes me think I may be missing something easy. Very conscious that opening this issue may have me looking like a bozo - don't hesitate to let me know if I am!

Regardless, it's not a huge deal, just thought this type error was a local problem at first so I figured I'd open the issue for others who might run into it. I won't be offended if you guys want to stick with the original plan and close this issue quickly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants