From 1c4028a381b397e97e88dfb3564616247312a888 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 18 May 2022 16:16:11 +0200 Subject: fix: add types for `Response.json` (#14655) --- ext/fetch/lib.deno_fetch.d.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/fetch/lib.deno_fetch.d.ts') 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; -- cgit v1.2.3