summaryrefslogtreecommitdiff
path: root/ext/fetch/lib.deno_fetch.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/lib.deno_fetch.d.ts')
-rw-r--r--ext/fetch/lib.deno_fetch.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fetch/lib.deno_fetch.d.ts b/ext/fetch/lib.deno_fetch.d.ts
index 18c39c866..79d435468 100644
--- a/ext/fetch/lib.deno_fetch.d.ts
+++ b/ext/fetch/lib.deno_fetch.d.ts
@@ -252,7 +252,7 @@ interface RequestInit {
/** This Fetch API interface represents a resource request. */
declare class Request implements Body {
- constructor(input: RequestInfo, init?: RequestInit);
+ constructor(input: RequestInfo | URL, init?: RequestInit);
/**
* Returns the cache mode associated with request, which is a string
@@ -385,7 +385,7 @@ declare class Response implements Body {
constructor(body?: BodyInit | null, init?: ResponseInit);
static json(data: unknown, init?: ResponseInit): Response;
static error(): Response;
- static redirect(url: string, status?: number): Response;
+ static redirect(url: string | URL, status?: number): Response;
readonly headers: Headers;
readonly ok: boolean;