Skip to content

Commit 4677bbb

Browse files
committed
chore: update README
1 parent a2535c7 commit 4677bbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ const blob = await blobs.getWithMetadata('some-key', { type: 'json' })
214214
console.log(blob.data, blob.etag, blob.metadata)
215215
```
216216

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

219219
Creates an object with the given key and value.
220220

@@ -224,7 +224,7 @@ If an entry with the given key already exists, its value is overwritten.
224224
await blobs.set('some-key', 'This is a string value')
225225
```
226226

227-
### `setJSON(key: string, value: any): Promise<void>`
227+
### `setJSON(key: string, value: any, { metadata?: object }): Promise<void>`
228228

229229
Convenience method for creating a JSON-serialized object with the given key.
230230

0 commit comments

Comments
 (0)