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

Typescript access to lastResponse headers #983

Closed
davidbielik opened this issue Aug 15, 2020 · 1 comment · Fixed by #990
Closed

Typescript access to lastResponse headers #983

davidbielik opened this issue Aug 15, 2020 · 1 comment · Fixed by #990
Labels

Comments

@davidbielik
Copy link
Contributor

davidbielik commented Aug 15, 2020

[email protected]
Node v10.10.0

Hi Stripe team,

Is there a way in typescript to get the response headers? For example, in the docs it specifies:

var customer = await stripe.customers.create();
console.log(customer.lastResponse.requestId);

But in my application, lastResponse isn't part of the typescript definitions:

image

Am I accessing those properties incorrectly, or is that not supported (yet) for the Typescript integration?

@remi-stripe
Copy link
Contributor

@davidbielik It's not something we've added to the Typescript definitions for now as we focused those definitions on the core API parameters and properties. I'm going to tag this as a future improvement though and sync internally to see if we could implement this!

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

Successfully merging a pull request may close this issue.

2 participants