We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At
zapier-platform/packages/core/index.d.ts
Line 104 in c0da673
BaseHttpResponse.headers
{ [key: string]: string }
node-fetch
Headers
response
z.request()
response.headers['content-type']
undefined
response.headers.get('content-type')
14.1.1
v18.15.0
13.4 (22F66)
1.22.19
185850
No response
The text was updated successfully, but these errors were encountered:
Thanks for reporting this bug! I've gone ahead and created a ticket in our internal issue tracker: PDE-4118
PDE-4118
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Description
At
zapier-platform/packages/core/index.d.ts
Line 104 in c0da673
BaseHttpResponse.headers
is typed as{ [key: string]: string }
but I've found that this is anode-fetch
Headers
class object instead: https://github.com/node-fetch/node-fetch/blob/7b86e946b02dfdd28f4f8fca3d73a022cbb5ca1e/%40types/index.d.ts#L40Reproduction Steps
response
withz.request()
, try to read a header usingresponse.headers['content-type']
and find it returnsundefined
.response.headers.get('content-type')
and find TypeScript raises a type error.Zapier Platform version
14.1.1
Node.js version
v18.15.0
Your Operating System
13.4 (22F66)
npm/yarn version
1.22.19
App ID
185850
More Details
No response
The text was updated successfully, but these errors were encountered: