From 317f13b63f91a6c3ed7c5996432ed326d66b1e3b Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 28 Mar 2022 11:35:48 +0100 Subject: fix(ext/fetch): extend deprecated fetch() overload with `string | Request` (#14134) --- ext/fetch/lib.deno_fetch.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/fetch') 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; -- cgit v1.2.3