@@ -65,8 +65,7 @@ export const MatchingStrategies = {
6565 LAST : 'last' ,
6666} as const
6767
68- export type MatchingStrategies =
69- ( typeof MatchingStrategies ) [ keyof typeof MatchingStrategies ]
68+ export type MatchingStrategies = typeof MatchingStrategies [ keyof typeof MatchingStrategies ]
7069
7170export type Filter = string | Array < string | string [ ] >
7271
@@ -200,7 +199,7 @@ export type FacetStats = Record<string, FacetStat>
200199
201200export type SearchResponse <
202201 T = Record < string , any > ,
203- S extends SearchParams | undefined = undefined ,
202+ S extends SearchParams | undefined = undefined
204203> = {
205204 hits : Hits < T >
206205 processingTimeMs : number
@@ -211,8 +210,8 @@ export type SearchResponse<
211210} & ( undefined extends S
212211 ? Partial < FinitePagination & InfinitePagination >
213212 : true extends IsFinitePagination < NonNullable < S > >
214- ? FinitePagination
215- : InfinitePagination )
213+ ? FinitePagination
214+ : InfinitePagination )
216215
217216type FinitePagination = {
218217 totalHits : number
@@ -234,8 +233,8 @@ type IsFinitePagination<S extends SearchParams> = Or<
234233type Or < A extends boolean , B extends boolean > = true extends A
235234 ? true
236235 : true extends B
237- ? true
238- : false
236+ ? true
237+ : false
239238
240239type HasHitsPerPage < S extends SearchParams > = undefined extends S [ 'hitsPerPage' ]
241240 ? false
@@ -364,7 +363,7 @@ export const TaskStatus = {
364363 TASK_CANCELED : 'canceled' ,
365364} as const
366365
367- export type TaskStatus = ( typeof TaskStatus ) [ keyof typeof TaskStatus ]
366+ export type TaskStatus = typeof TaskStatus [ keyof typeof TaskStatus ]
368367
369368export const TaskTypes = {
370369 DOCUMENTS_ADDITION_OR_UPDATE : 'documentAdditionOrUpdate' ,
@@ -380,7 +379,7 @@ export const TaskTypes = {
380379 TASK_DELETION : 'taskDeletion' ,
381380} as const
382381
383- export type TaskTypes = ( typeof TaskTypes ) [ keyof typeof TaskTypes ]
382+ export type TaskTypes = typeof TaskTypes [ keyof typeof TaskTypes ]
384383
385384export type TasksQuery = {
386385 indexUids ?: string [ ]
@@ -933,8 +932,7 @@ export const ErrorStatusCode = {
933932 INVALID_FACET_SEARCH_FACET_QUERY : 'invalid_facet_search_facet_query' ,
934933}
935934
936- export type ErrorStatusCode =
937- ( typeof ErrorStatusCode ) [ keyof typeof ErrorStatusCode ]
935+ export type ErrorStatusCode = typeof ErrorStatusCode [ keyof typeof ErrorStatusCode ]
938936
939937export type TokenIndexRules = {
940938 [ field : string ] : any
0 commit comments