File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ const blob = await blobs.getWithMetadata('some-key', { type: 'json' })
214
214
console .log (blob .data , blob .etag , blob .metadata )
215
215
```
216
216
217
- ### ` set(key: string, value: ArrayBuffer | Blob | ReadableStream | string): Promise<void> `
217
+ ### ` set(key: string, value: ArrayBuffer | Blob | ReadableStream | string, { metadata?: object } ): Promise<void> `
218
218
219
219
Creates an object with the given key and value.
220
220
@@ -224,7 +224,7 @@ If an entry with the given key already exists, its value is overwritten.
224
224
await blobs .set (' some-key' , ' This is a string value' )
225
225
```
226
226
227
- ### ` setJSON(key: string, value: any): Promise<void> `
227
+ ### ` setJSON(key: string, value: any, { metadata?: object } ): Promise<void> `
228
228
229
229
Convenience method for creating a JSON-serialized object with the given key.
230
230
You can’t perform that action at this time.
0 commit comments