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:
parent
ff463f68c8
commit
cfb6067f9b
1 changed files with 0 additions and 10 deletions
10
ext/fetch/lib.deno_fetch.d.ts
vendored
10
ext/fetch/lib.deno_fetch.d.ts
vendored
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue