bun-types 1.1.22 → 1.1.23-canary.20240810T140450

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.
Files changed (2) hide show
  1. package/globals.d.ts +4 -0
  2. 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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.22",
2
+ "version": "1.1.23-canary.20240810T140450",
3
3
  "name": "bun-types",
4
4
  "license": "MIT",
5
5
  "main": "",