From cfb6067f9bc0900a7d7fc6c75f19930542ed679c Mon Sep 17 00:00:00 2001 From: Mark Ladyshau <47859603+mrkldshv@users.noreply.github.com> Date: Tue, 7 Jun 2022 01:58:21 +0200 Subject: [PATCH] fix(ext/fetch): remove deprecation of `URL` in deno `fetch` (#14769) --- ext/fetch/lib.deno_fetch.d.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ext/fetch/lib.deno_fetch.d.ts b/ext/fetch/lib.deno_fetch.d.ts index 395300291c..18c39c8661 100644 --- a/ext/fetch/lib.deno_fetch.d.ts +++ b/ext/fetch/lib.deno_fetch.d.ts @@ -435,16 +435,6 @@ declare class Response implements Body { * const jsonData = await response.json(); * ``` */ -declare function fetch( - input: Request | string, - init?: RequestInit, -): Promise; -// 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,