Skip to content

Commit

Permalink
fix(type): getTypoTolerance return value type (#1455)
Browse files Browse the repository at this point in the history
getTypoTolerance function should return type "TypoTolerance" rather than string array.
  • Loading branch information
riccox authored Jun 13, 2023
1 parent d85d9b8 commit ac37a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/indexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,9 +1017,9 @@ class Index<T extends Record<string, any> = Record<string, any>> {
*
* @returns Promise containing the typo tolerance settings.
*/
async getTypoTolerance(): Promise<string[]> {
async getTypoTolerance(): Promise<TypoTolerance> {
const url = `indexes/${this.uid}/settings/typo-tolerance`
return await this.httpRequest.get<string[]>(url)
return await this.httpRequest.get<TypoTolerance>(url)
}

/**
Expand Down

0 comments on commit ac37a81

Please sign in to comment.