TypeScript types are invalid when expanding responses
Problem
Describe the bug When expanding responses as per the documentation here, the return types for various Stripe methods are not updated to accurately reflect the modified responses. To Reproduce [code block] Expected behavior The returned data does indeed contain a nested `subscriptions` object: [code block] However, the TypeScript types do not declare this at all. Code snippets _No response_ OS macOS Node version Node v16.4.2 Library version stripe-node v10.8.0 API version 2022-08-01 Additional context _No response_
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: TypeScript types are invalid when expanding responses
Hi @isaachinman! Do you mean the `subscriptions` property defined here should be non-nullable when `subscriptions` are passed in the `expand` property?
Trust Score
1 verification
- 1
Hi @isaachinman! Do you mean the `subscriptions` property defined here should be
Hi @isaachinman! Do you mean the `subscriptions` property defined here should be non-nullable when `subscriptions` are passed in the `expand` property?
Validation
Resolved in stripe/stripe-node GitHub issue #1556. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep