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

lib.dom missing "duplex" option in RequestInit #53157

Closed
5 tasks done
nornagon opened this issue Mar 8, 2023 · 3 comments
Closed
5 tasks done

lib.dom missing "duplex" option in RequestInit #53157

nornagon opened this issue Mar 8, 2023 · 3 comments

Comments

@nornagon
Copy link

nornagon commented Mar 8, 2023

Suggestion

πŸ” Search Terms

I looked for "lib.dom RequestInit duplex".

βœ… Viability Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

The RequestInit type in lib.dom seems to be missing the duplex option. See nodejs/node#46221 for further details.

πŸ“ƒ Motivating Example

nodejs/node#46221 has an example.

πŸ’» Use Cases

This is required for spec compatibility.

@jakebailey
Copy link
Member

You probably want to be reporting this on: https://github.com/microsoft/TypeScript-DOM-lib-generator

@RyanCavanaugh
Copy link
Member

Please use the lib modification bug template.

@RyanCavanaugh RyanCavanaugh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2023
@nornagon
Copy link
Author

Looks like microsoft/TypeScript-DOM-lib-generator#1483, for any future bug hunters.

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

No branches or pull requests

3 participants