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
invoices.retrieveUpcoming returns Stripe.Invoice, but the upcoming invoice doesn't return an id. id should either be optional or this should be a seperate type.
The text was updated successfully, but these errors were encountered:
We experimented with adding a separate type for "UpcomingInvoice", but unfortunately this is a little bit unwieldy. We don't want to change the type of id to optional, either, because in most cases id is not optional, and that would cause a lot of users to have to do an extra type refinement. I think the right thing to do would be to use the "Omit" utility type in the return value of the method (https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys), but unfortunately it will take a little bit of work to add the ability to express this in our code generation infrastructure. I'm labeling this as "future".
invoices.retrieveUpcoming
returnsStripe.Invoice
, but the upcoming invoice doesn't return anid
.id
should either be optional or this should be a seperate type.The text was updated successfully, but these errors were encountered: