The SearchClient type is imported from algoliasearch/lite, instead of instantsearch.js. The type exported by the algoliasearch package is narrower than instantsearch's, and makes it so other instantsearch clients can't be used (without type errors), even though they are compatible.
The
SearchClient
type is imported fromalgoliasearch/lite
, instead ofinstantsearch.js
. The type exported by the algoliasearch package is narrower than instantsearch's, and makes it so other instantsearch clients can't be used (without type errors), even though they are compatible.https://github.com/aymeric-giraudet/svelte-algolia-instantsearch/blob/25701741378d3275e1755fd7280cc421ef52eae9/src/lib/InstantSearch.svelte#L2C37-L2C56