aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/bun-types/globals.d.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/bun-types/globals.d.ts b/packages/bun-types/globals.d.ts
index 6bb02e0c2..82f8cfb8b 100644
--- a/packages/bun-types/globals.d.ts
+++ b/packages/bun-types/globals.d.ts
@@ -1096,6 +1096,13 @@ declare class Request implements BlobInterface {
* @returns Promise<FormData> - The body of the request as a {@link FormData}.
*/
formData(): Promise<FormData>;
+
+ /**
+ * Has the body of the request been read?
+ *
+ * [Request.bodyUsed](https://developer.mozilla.org/en-US/docs/Web/API/Request/bodyUsed)
+ */
+ readonly bodyUsed: boolean;
}
declare interface Crypto {