algolia / algolia/algoliasearch-client-javascript
Type error in searchOptions["facets"] which should also accept `string`
Open
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 226
- PR merge metrics
- No merged PRs in 30d
Description
The current type of `facets` in the searchOptions is:
https://github.com/algolia/algoliasearch-client-javascript/blob/ba59b68aa9494c29e284ed45e924267d7388baa9/packages/client-search/src/types/SearchOptions.ts#L104
Nonetheless, while this is true when no facets are checked, once it is `facets` may contain a string.


Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.