aymeric-giraudet / svelte-algolia-instantsearch

A Svelte component library for Algolia InstantSearch.js
https://svelte-algolia-instantsearch.vercel.app/
MIT License
52 stars 12 forks source link

SearchClient type issue #41

Open knd775 opened 6 months ago

knd775 commented 6 months ago

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.

https://github.com/aymeric-giraudet/svelte-algolia-instantsearch/blob/25701741378d3275e1755fd7280cc421ef52eae9/src/lib/InstantSearch.svelte#L2C37-L2C56