Skip to content

Commit

Permalink
feat!: disallow setting an object as a stream (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas authored Nov 9, 2023
1 parent 5db49ad commit 1c8f668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ const blob = await store.getMetadata('some-key')
console.log(blob.etag, blob.metadata)
```

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

Creates an object with the given key and value.

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type BlobInput = ReadableStream | string | ArrayBuffer | Blob
export type BlobInput = string | ArrayBuffer | Blob

export type Fetcher = typeof globalThis.fetch

Expand Down

0 comments on commit 1c8f668

Please sign in to comment.