mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
fix(ext/fetch): extend deprecated fetch() overload with string | Request
(#14134)
This commit is contained in:
parent
33a8613451
commit
317f13b63f
1 changed files with 1 additions and 1 deletions
2
ext/fetch/lib.deno_fetch.d.ts
vendored
2
ext/fetch/lib.deno_fetch.d.ts
vendored
|
@ -445,6 +445,6 @@ declare function fetch(
|
|||
* `Response` to that `Request`, whether it is successful or not.
|
||||
*/
|
||||
declare function fetch(
|
||||
input: URL,
|
||||
input: URL | Request | string,
|
||||
init?: RequestInit,
|
||||
): Promise<Response>;
|
||||
|
|
Loading…
Add table
Reference in a new issue