summaryrefslogtreecommitdiff
path: root/ext/fetch/lib.deno_fetch.d.ts
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-05-18 16:16:11 +0200
committerGitHub <noreply@github.com>2022-05-18 16:16:11 +0200
commit1c4028a381b397e97e88dfb3564616247312a888 (patch)
tree9f9fce9697767a6f3ee6ca020b1e1275dc6650fb /ext/fetch/lib.deno_fetch.d.ts
parentf2410b4481ec4e2cda804fe05d30273bba3d4008 (diff)
fix: add types for `Response.json` (#14655)
Diffstat (limited to 'ext/fetch/lib.deno_fetch.d.ts')
-rw-r--r--ext/fetch/lib.deno_fetch.d.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/fetch/lib.deno_fetch.d.ts b/ext/fetch/lib.deno_fetch.d.ts
index 62f0eab39..395300291 100644
--- a/ext/fetch/lib.deno_fetch.d.ts
+++ b/ext/fetch/lib.deno_fetch.d.ts
@@ -383,6 +383,7 @@ type ResponseType =
/** This Fetch API interface represents the response to a request. */
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;