diff options
author | Mark Ladyshau <47859603+mrkldshv@users.noreply.github.com> | 2022-06-07 01:58:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-07 01:58:21 +0200 |
commit | cfb6067f9bc0900a7d7fc6c75f19930542ed679c (patch) | |
tree | 1049c4daccfc3803a4eb16a0d4943c2a3ad8a5fc /ext/fetch/lib.deno_fetch.d.ts | |
parent | ff463f68c80b8e825b28f22bcfbebe508ed7f98e (diff) |
fix(ext/fetch): remove deprecation of `URL` in deno `fetch` (#14769)
Diffstat (limited to 'ext/fetch/lib.deno_fetch.d.ts')
-rw-r--r-- | ext/fetch/lib.deno_fetch.d.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/fetch/lib.deno_fetch.d.ts b/ext/fetch/lib.deno_fetch.d.ts index 395300291..18c39c866 100644 --- a/ext/fetch/lib.deno_fetch.d.ts +++ b/ext/fetch/lib.deno_fetch.d.ts @@ -436,16 +436,6 @@ declare class Response implements Body { * ``` */ declare function fetch( - input: Request | string, - init?: RequestInit, -): Promise<Response>; -// TODO(kt3k): Remove the following overloaded declaration for 2.0. -/** @deprecated URL is deprecated as the first argument. Use string or Request object instead. - * - * Fetch a resource from the network. It returns a `Promise` that resolves to the - * `Response` to that `Request`, whether it is successful or not. - */ -declare function fetch( input: URL | Request | string, init?: RequestInit, ): Promise<Response>; |