@@ -65,7 +65,8 @@ export const MatchingStrategies = {
6565 LAST : 'last' ,
6666} as const
6767
68- export type MatchingStrategies = typeof MatchingStrategies [ keyof typeof MatchingStrategies ]
68+ export type MatchingStrategies =
69+ ( typeof MatchingStrategies ) [ keyof typeof MatchingStrategies ]
6970
7071export type Filter = string | Array < string | string [ ] >
7172
@@ -207,7 +208,7 @@ export type FacetStats = Record<string, FacetStat>
207208
208209export type SearchResponse <
209210 T = Record < string , any > ,
210- S extends SearchParams | undefined = undefined
211+ S extends SearchParams | undefined = undefined ,
211212> = {
212213 hits : Hits < T >
213214 processingTimeMs : number
@@ -218,8 +219,8 @@ export type SearchResponse<
218219} & ( undefined extends S
219220 ? Partial < FinitePagination & InfinitePagination >
220221 : true extends IsFinitePagination < NonNullable < S > >
221- ? FinitePagination
222- : InfinitePagination )
222+ ? FinitePagination
223+ : InfinitePagination )
223224
224225type FinitePagination = {
225226 totalHits : number
@@ -241,8 +242,8 @@ type IsFinitePagination<S extends SearchParams> = Or<
241242type Or < A extends boolean , B extends boolean > = true extends A
242243 ? true
243244 : true extends B
244- ? true
245- : false
245+ ? true
246+ : false
246247
247248type HasHitsPerPage < S extends SearchParams > = undefined extends S [ 'hitsPerPage' ]
248249 ? false
@@ -403,7 +404,7 @@ export const TaskStatus = {
403404 TASK_CANCELED : 'canceled' ,
404405} as const
405406
406- export type TaskStatus = typeof TaskStatus [ keyof typeof TaskStatus ]
407+ export type TaskStatus = ( typeof TaskStatus ) [ keyof typeof TaskStatus ]
407408
408409export const TaskTypes = {
409410 DOCUMENTS_ADDITION_OR_UPDATE : 'documentAdditionOrUpdate' ,
@@ -419,7 +420,7 @@ export const TaskTypes = {
419420 TASK_DELETION : 'taskDeletion' ,
420421} as const
421422
422- export type TaskTypes = typeof TaskTypes [ keyof typeof TaskTypes ]
423+ export type TaskTypes = ( typeof TaskTypes ) [ keyof typeof TaskTypes ]
423424
424425export type TasksQuery = {
425426 indexUids ?: string [ ]
@@ -972,7 +973,8 @@ export const ErrorStatusCode = {
972973 INVALID_FACET_SEARCH_FACET_QUERY : 'invalid_facet_search_facet_query' ,
973974}
974975
975- export type ErrorStatusCode = typeof ErrorStatusCode [ keyof typeof ErrorStatusCode ]
976+ export type ErrorStatusCode =
977+ ( typeof ErrorStatusCode ) [ keyof typeof ErrorStatusCode ]
976978
977979export type TokenIndexRules = {
978980 [ field : string ] : any
0 commit comments