diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2022-03-28 11:35:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 12:35:48 +0200 |
commit | 317f13b63f91a6c3ed7c5996432ed326d66b1e3b (patch) | |
tree | 52468c4110bdc8d59333deeef9fa906e7c45b689 /ext/fetch/lib.deno_fetch.d.ts | |
parent | 33a8613451c8587b68d94e0985070fc32c9d7b7a (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.ts | 2 |
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>; |