From 8275b8ccd2f0d39b482950dd809d6753c165607c Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 5 Aug 2023 03:30:38 +0300 Subject: [types] fix `blob.json()` (#3995) --- packages/bun-types/globals.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/bun-types/globals.d.ts b/packages/bun-types/globals.d.ts index bef79f57b..5ab3ac6fa 100644 --- a/packages/bun-types/globals.d.ts +++ b/packages/bun-types/globals.d.ts @@ -570,7 +570,7 @@ declare module "node:process" { interface BlobInterface { text(): Promise; arrayBuffer(): Promise; - json(): Promise; + json(): Promise; formData(): Promise; } @@ -766,7 +766,7 @@ declare interface Blob { * This first decodes the data from UTF-8, then parses it as JSON. * */ - json(): Promise; + json(): Promise; /** * Read the data from the blob as a {@link FormData} object. @@ -933,7 +933,7 @@ declare class Response implements BlobInterface { * This first decodes the data from UTF-8, then parses it as JSON. * */ - json(): Promise; + json(): Promise; /** * Read the data from the Response as a Blob. @@ -1194,7 +1194,7 @@ declare class Request implements BlobInterface { * This first decodes the data from UTF-8, then parses it as JSON. * */ - json(): Promise; + json(): Promise; /** * Consume the [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) body as a `Blob`. -- cgit v1.2.3