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

fix: use Bun's Fetch interface for fetch #13997

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ragavpr
Copy link

@ragavpr ragavpr commented Sep 17, 2024

Allows TypeScript to use Bun's FetchRequestInit instead of Node's RequestInit in fetch request options.

What does this PR do?

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

I modified the .d.ts file directly in my own project's node_modules and verified the type is recognized correctly in VSCode.

Additional Info

This previously existing similar type probably supports, fetch to be of Fetch, hence made this change

var fetch: Fetch;

Fixes #13827

Allows TypeScript to use Bun's FetchRequestInit instead of Node's RequestInit in fetch request options.
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

Successfully merging this pull request may close these issues.

TypeScript: 'proxy' property not recognized in fetch RequestInit in Bun.js
1 participant