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'
21import type {
32 MultipleQueriesQuery as AlgoliaMultipleQueriesQuery ,
43 multipleSearchForFacetValues ,
54} from '@algolia/client-search'
5+ import type { InstantSearchOptions } from 'instantsearch.js/es/lib/InstantSearch.js'
66import type {
77 MultiSearchQuery as MeiliSearchMultiSearchParams ,
88 MultiSearchResult ,
@@ -127,9 +127,10 @@ export type InstantSearchGeoParams = {
127127 insidePolygon ?: ReadonlyArray < readonly number [ ] >
128128}
129129
130- export type InstantMeiliSearchInstance = ReturnType < typeof SearchClient > & {
131- clearCache : ( ) => void
132- }
130+ export type InstantMeiliSearchInstance =
131+ InstantSearchOptions [ 'searchClient' ] & {
132+ clearCache : ( ) => void
133+ }
133134
134135export type InstantMeiliSearchObject = {
135136 meiliSearchInstance : MeiliSearch
You can’t perform that action at this time.
0 commit comments