Skip to content

Commit 1c8f668

Browse files
feat!: disallow setting an object as a stream (#96)
1 parent 5db49ad commit 1c8f668

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const blob = await store.getMetadata('some-key')
247247
console.log(blob.etag, blob.metadata)
248248
```
249249

250-
### `set(key: string, value: ArrayBuffer | Blob | ReadableStream | string, { metadata?: object }): Promise<void>`
250+
### `set(key: string, value: ArrayBuffer | Blob | string, { metadata?: object }): Promise<void>`
251251

252252
Creates an object with the given key and value.
253253

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type BlobInput = ReadableStream | string | ArrayBuffer | Blob
1+
export type BlobInput = string | ArrayBuffer | Blob
22

33
export type Fetcher = typeof globalThis.fetch
44

0 commit comments

Comments
 (0)