summaryrefslogtreecommitdiff
path: root/ext/fetch/lib.deno_fetch.d.ts
diff options
context:
space:
mode:
authorayame113 <40050810+ayame113@users.noreply.github.com>2022-07-20 19:30:41 +0900
committerGitHub <noreply@github.com>2022-07-20 18:30:41 +0800
commit27a72a12b772cfa74b519714aca6e3b6fdaa5eeb (patch)
tree7a36d0494797e3296f1deae51e733378f2abfd99 /ext/fetch/lib.deno_fetch.d.ts
parentb8e1250500ba07971b2f05847fdcbbfe548caa44 (diff)
chore: align some Web API type definitions to lib.dom.d.ts (#15219)
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;