-
Notifications
You must be signed in to change notification settings - Fork 16.6k
Closed as not planned
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
30.4.0
What operating system(s) are you using?
macOS
Operating System Version
Sonoma
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
Web API fetch
is specified as also accepting an URL as the first parameter. Node.js' fetch
supports URL. Electron's implementation appears to tolerate an URL. It would be very convenient to align with others and make what already works explicit in the typings.
Web API fetch
: https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch
Where I think Electron passes the first parameter in a way that accepts an URL:
electron/lib/browser/api/net-fetch.ts
Line 21 in 1c3a5ba
req = new Request(input, init); |
Actual Behavior
URL is missing from the docs that are used to generate electron.d.ts
:
Line 68 in 1c3a5ba
* `input` string | [GlobalRequest](https://nodejs.org/api/globals.html#request) |
Testcase Gist URL
No response
Additional Information
No response