Closed kurybr closed 5 months ago
@kurybr plan
as a property on Subscription has been deprecated for many years now. It exists for backwards compatibility reasons that I described in details in https://github.com/stripe/stripe-node/issues/1794 if you want a detailed answer! We recommend using items.data[][price]
instead!
Describe the bug
There is a problem with the typing of Stripe.Subscription. The plan object within the subscription is not being properly recognized.
To Reproduce
Try to access the plan object within Stripe.Subscription in a TypeScript environment. Observe that the typing does not recognize or consider the plan object.
Expected behavior
The typing for Stripe.Subscription should include and properly recognize the plan object with its structure and properties.
Code snippets
The plan object has the following structure:
OS
linux
Node version
v22.3.0
Library version
stripe-node 16.1.0
API version
2024-06-20
Additional context