summaryrefslogtreecommitdiff
path: root/ext/fetch/lib.deno_fetch.d.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-03-28 11:35:48 +0100
committerGitHub <noreply@github.com>2022-03-28 12:35:48 +0200
commit317f13b63f91a6c3ed7c5996432ed326d66b1e3b (patch)
tree52468c4110bdc8d59333deeef9fa906e7c45b689 /ext/fetch/lib.deno_fetch.d.ts
parent33a8613451c8587b68d94e0985070fc32c9d7b7a (diff)
fix(ext/fetch): extend deprecated fetch() overload with `string | Request` (#14134)
Diffstat (limited to 'ext/fetch/lib.deno_fetch.d.ts')
-rw-r--r--ext/fetch/lib.deno_fetch.d.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fetch/lib.deno_fetch.d.ts b/ext/fetch/lib.deno_fetch.d.ts
index cd06deffb..62f0eab39 100644
--- a/ext/fetch/lib.deno_fetch.d.ts
+++ b/ext/fetch/lib.deno_fetch.d.ts
@@ -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>;