Skip to content

Commit

Permalink
fix(ext/fetch): remove deprecation of URL in deno fetch (denoland…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkldshv committed Jun 6, 2022
1 parent ff463f6 commit cfb6067
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ext/fetch/lib.deno_fetch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,16 +435,6 @@ declare class Response implements Body {
* const jsonData = await response.json();
* ```
*/
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,
Expand Down

0 comments on commit cfb6067

Please sign in to comment.