From 3807e1ef81078552a80f88d8521eb35ab09da333 Mon Sep 17 00:00:00 2001 From: Ricco Xie Date: Fri, 10 Mar 2023 16:25:26 +0800 Subject: [PATCH] fix(type): getTypoTolerance return value type getTypoTolerance function should return type "TypoTolerance" rather than string array. --- src/indexes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/indexes.ts b/src/indexes.ts index 98406656a..080fe6d0e 100644 --- a/src/indexes.ts +++ b/src/indexes.ts @@ -914,9 +914,9 @@ class Index = Record> { * * @returns Promise containing the typo tolerance settings. */ - async getTypoTolerance(): Promise { + async getTypoTolerance(): Promise { const url = `indexes/${this.uid}/settings/typo-tolerance` - return await this.httpRequest.get(url) + return await this.httpRequest.get(url) } /**