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
This is not ideal because stripe might not always be imported with the module specifier as "stripe". For example, someone might be importing it via a url or alias the stripe package. Essentially by using an ambient module, the code is declaring a global module specifier "stripe" rather than being the types that are exported from the package.
Describe the solution you'd like
Instead, export the declarations from ./types/index.d.ts
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Right now, stripe defines its types with an amient module like so:
stripe-node/types/index.d.ts
Line 205 in a91857a
This is not ideal because stripe might not always be imported with the module specifier as "stripe". For example, someone might be importing it via a url or alias the stripe package. Essentially by using an ambient module, the code is declaring a global module specifier "stripe" rather than being the types that are exported from the package.
Describe the solution you'd like
Instead, export the declarations from ./types/index.d.ts
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: