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

Bug: Typescript definition file index.d.ts is missing insecureHTTPParser #953

Closed
dianejewett opened this issue Sep 16, 2020 · 0 comments · Fixed by #964
Closed

Bug: Typescript definition file index.d.ts is missing insecureHTTPParser #953

dianejewett opened this issue Sep 16, 2020 · 0 comments · Fixed by #964
Labels

Comments

@dianejewett
Copy link

Reproduction

fetch("./user-details", {
method: "POST",
headers: headers,
body: JSON.stringify({ userId: userId }),
insecureHTTPParser: true,
})

Gives typescript error: Object literal may only specify known properties, and 'insecureHTTPParser' does not exist in type 'RequestInit'.

software version
node-fetch 3.0.0-beta.9
node 14.4.0
npm 6.14.5
Operating System Linux MInt
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.

1 participant