File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
packages/instant-meilisearch/src/types Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @meilisearch/instant-meilisearch " : patch
3
+ ---
4
+
5
+ Fix search client type
Original file line number Diff line number Diff line change 1
- import type SearchClient from 'instantsearch.js'
2
1
import type {
3
2
MultipleQueriesQuery as AlgoliaMultipleQueriesQuery ,
4
3
multipleSearchForFacetValues ,
5
4
} from '@algolia/client-search'
5
+ import type { InstantSearchOptions } from 'instantsearch.js/es/lib/InstantSearch.js'
6
6
import type {
7
7
MultiSearchQuery as MeiliSearchMultiSearchParams ,
8
8
MultiSearchResult ,
@@ -127,9 +127,10 @@ export type InstantSearchGeoParams = {
127
127
insidePolygon ?: ReadonlyArray < readonly number [ ] >
128
128
}
129
129
130
- export type InstantMeiliSearchInstance = ReturnType < typeof SearchClient > & {
131
- clearCache : ( ) => void
132
- }
130
+ export type InstantMeiliSearchInstance =
131
+ InstantSearchOptions [ 'searchClient' ] & {
132
+ clearCache : ( ) => void
133
+ }
133
134
134
135
export type InstantMeiliSearchObject = {
135
136
meiliSearchInstance : MeiliSearch
You can’t perform that action at this time.
0 commit comments