We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to use algoliasearch/lite (v5.17.1) and i'm seeing a TypeScript issue when trying to access hits from a response.
algoliasearch/lite
hits
Property 'hits' does not exist on type 'SearchForFacetValuesResponse'
I saw other issues that mentioned that it should be fixed on v5.1.0 -, so I'm not sure if I'm doing something wrong.
Here is a CodeSandbox example: https://codesandbox.io/p/sandbox/y34m9l?file=%2Fsrc%2Findex.ts
Search
5.17.1
No response
The text was updated successfully, but these errors were encountered:
Thanks to @shortcuts for the pointer: the trick is to use client.searchForHits instead of client.search
client.searchForHits
client.search
Sorry, something went wrong.
No branches or pull requests
Description
I'm trying to use
algoliasearch/lite
(v5.17.1) and i'm seeing a TypeScript issue when trying to accesshits
from a response.I saw other issues that mentioned that it should be fixed on v5.1.0 -, so I'm not sure if I'm doing something wrong.
Here is a CodeSandbox example: https://codesandbox.io/p/sandbox/y34m9l?file=%2Fsrc%2Findex.ts
Client
Search
Version
5.17.1
Relevant log output
No response
The text was updated successfully, but these errors were encountered: