bun-types 1.1.22 → 1.1.23-canary.20240809T140532
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/globals.d.ts +4 -0
- package/package.json +1 -1
package/globals.d.ts
CHANGED
|
@@ -2029,6 +2029,10 @@ declare global {
|
|
|
2029
2029
|
* closely to the `BodyMixin` API.
|
|
2030
2030
|
*/
|
|
2031
2031
|
formData(): Promise<FormData>;
|
|
2032
|
+
/**
|
|
2033
|
+
* 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())`
|
|
2034
|
+
*/
|
|
2035
|
+
bytes(): Promise<Uint8Array>;
|
|
2032
2036
|
}
|
|
2033
2037
|
var Blob: typeof globalThis extends {
|
|
2034
2038
|
onerror: any;
|
package/package.json
CHANGED