Skip to content

Commit

Permalink
Fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
flevi29 committed Oct 9, 2024
1 parent a32ed2d commit 118534d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class Index<T extends Record<string, any> = Record<string, any>> {
* @param data - Data to update
* @returns Promise to the current Index object with updated information
*/
async update(data: IndexOptions): Promise<EnqueuedTask> {
async update(data?: IndexOptions): Promise<EnqueuedTask> {
const task = <EnqueuedTaskObject>await this.httpRequest.patch({
relativeURL: `indexes/${this.uid}`,
body: data,
Expand Down

0 comments on commit 118534d

Please sign in to comment.