Skip to content

[bug]: algoliasearch/lite search response: Property 'hits' does not exist on type 'SearchForFacetValuesResponse' #1574

@raed667

Description

@raed667

Description

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.

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

Client

Search

Version

5.17.1

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions