Skip to content

Commit 56a5676

Browse files
committed
fix: StorageClient#uplaodAsJson signature
1 parent 927ba3f commit 56a5676

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@lens-chain/storage-client": patch
3+
---
4+
5+
**fix**: mandatory `options` in `StorageClient#uplaodAsJson` signature.

typescript/src/StorageClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class StorageClient {
8585
* @param options - Upload options including the ACL configuration
8686
* @returns The {@link FileUploadResponse} to the uploaded JSON
8787
*/
88-
async uploadAsJson(json: unknown, options?: UploadJsonOptions): Promise<FileUploadResponse>;
88+
async uploadAsJson(json: unknown, options: UploadJsonOptions): Promise<FileUploadResponse>;
8989
/**
9090
* @deprecated use `uploadAsJson(json: unknown, options: UploadJsonOptions): Promise<FileUploadResponse>` instead
9191
*/

0 commit comments

Comments
 (0)