0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

fix(ext/fetch): remove deprecation of URL in deno fetch (#14769)

This commit is contained in:
Mark Ladyshau 2022-06-07 01:58:21 +02:00 committed by GitHub
parent ff463f68c8
commit cfb6067f9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,