File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,10 @@ export type SearchRequestGET = Pagination &
106106 showMatchesPosition ?: boolean
107107 }
108108
109+ export type MultiSearchQuery = SearchParams & { indexUid : string }
110+
109111export type MultiSearchParams = {
110- queries : Array < SearchParams & { indexUid : string } >
112+ queries : MultiSearchQuery [ ]
111113}
112114
113115export type CategoriesDistribution = {
@@ -173,8 +175,10 @@ type HasPage<S extends SearchParams> = undefined extends S['page']
173175 ? false
174176 : true
175177
178+ export type MultiSearchResult < T > = SearchResponse < T > & { indexUid : string }
179+
176180export type MultiSearchResponse < T = Record < string , any > > = {
177- results : Array < SearchResponse < T > & { indexUid : string } >
181+ results : Array < MultiSearchResult < T > >
178182}
179183
180184export type FieldDistribution = {
You can’t perform that action at this time.
0 commit comments