Skip to content

Commit 61c2976

Browse files
authored
feat(search): add type for queryLanguages (#1406)
According to https://www.algolia.com/doc/api-reference/api-parameters/queryLanguages/?client=javascript, it can be sent as a search parameter too. fixes #1405
1 parent 283e38c commit 61c2976

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/client-search/src/types/SearchOptions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,9 @@ export type SearchOptions = {
368368
| readonly string[]
369369
| ReadonlyArray<readonly string[] | string>
370370
| null;
371+
372+
/**
373+
* Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
374+
*/
375+
readonly queryLanguages?: readonly string[];
371376
};

0 commit comments

Comments
 (0)