diff --git a/packages/bun-types/globals.d.ts b/packages/bun-types/globals.d.ts index 3e5a252fa37f8..a4309228e973a 100644 --- a/packages/bun-types/globals.d.ts +++ b/packages/bun-types/globals.d.ts @@ -1917,6 +1917,10 @@ declare global { * closely to the `BodyMixin` API. */ formData(): Promise; + /** + * Returns a promise that resolves to the contents of the blob as a Uint8Array (array of bytes) its the same as `new Uint8Array(await blob.arrayBuffer())` + */ + bytes(): Promise; } var Blob: typeof globalThis extends { onerror: any;