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

RequestInit.priority type #54472

Closed
RafidMuhymin opened this issue May 31, 2023 · 1 comment · Fixed by microsoft/TypeScript-DOM-lib-generator#1572
Closed

RequestInit.priority type #54472

RafidMuhymin opened this issue May 31, 2023 · 1 comment · Fixed by microsoft/TypeScript-DOM-lib-generator#1572
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Milestone

Comments

@RafidMuhymin
Copy link

Bug Report

Type RequestInit.priority hasn't been typed yet, it should be "high" | "low" | "auto". Chromium-based browsers support this feature since v101

Links: MDN Docs, CanIUse

🔎 Search Terms

  • init.priority fetch typescript
  • RequestInit.priority typescript

🕗 Version Information

4.8.4, 5.0.3, 5.0.4

⏯ Playground Link

Playground link with relevant code

💻 Code

fetch("https://example.com/", {
    method: "POST",
    priority: "low",
    body: JSON.stringify({
      // ... data
    }),
});

🙁 Actual behavior

RequestInit.priority hasn't been typed.

🙂 Expected behavior

The type of RequestInit.priority should be "high" | "low" | "auto".

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Help Wanted You can do this Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Jun 2, 2023
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Jun 2, 2023
@SevenOutman
Copy link

I've opened a PR microsoft/TypeScript-DOM-lib-generator#1572 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants