@@ -18,7 +18,7 @@ export type URLSearchParamsRecord = Record<
18
18
string ,
19
19
| string
20
20
| string [ ]
21
- | Array < string | string [ ] >
21
+ | ( string | string [ ] ) [ ]
22
22
| number
23
23
| number [ ]
24
24
| boolean
@@ -162,7 +162,7 @@ export const MatchingStrategies = {
162
162
export type MatchingStrategies =
163
163
( typeof MatchingStrategies ) [ keyof typeof MatchingStrategies ] ;
164
164
165
- export type Filter = string | Array < string | string [ ] > ;
165
+ export type Filter = string | ( string | string [ ] ) [ ] ;
166
166
167
167
export type Query = {
168
168
q ?: string | null ;
@@ -304,7 +304,7 @@ export type CategoriesDistribution = {
304
304
export type Facet = string ;
305
305
export type FacetDistribution = Record < Facet , CategoriesDistribution > ;
306
306
export type MatchesPosition < T > = Partial <
307
- Record < keyof T , Array < { start : number ; length : number ; indices ?: number [ ] } > >
307
+ Record < keyof T , { start : number ; length : number ; indices ?: number [ ] } [ ] >
308
308
> ;
309
309
310
310
export type RankingScoreDetails = {
@@ -352,7 +352,7 @@ export type Hit<T = RecordAny> = T & {
352
352
_federation ?: FederationDetails ;
353
353
} ;
354
354
355
- export type Hits < T = RecordAny > = Array < Hit < T > > ;
355
+ export type Hits < T = RecordAny > = Hit < T > [ ] ;
356
356
357
357
export type FacetStat = { min : number ; max : number } ;
358
358
export type FacetStats = Record < string , FacetStat > ;
@@ -415,7 +415,7 @@ type HasPage<S extends SearchParams> = undefined extends S["page"]
415
415
export type MultiSearchResult < T > = SearchResponse < T > & { indexUid : string } ;
416
416
417
417
export type MultiSearchResponse < T = RecordAny > = {
418
- results : Array < MultiSearchResult < T > > ;
418
+ results : MultiSearchResult < T > [ ] ;
419
419
} ;
420
420
421
421
export type MultiSearchResponseOrSearchResponse <
@@ -446,7 +446,7 @@ export type SearchSimilarDocumentsParams = {
446
446
*/
447
447
448
448
type Fields < T = RecordAny > =
449
- | Array < Extract < keyof T , string > >
449
+ | Extract < keyof T , string > [ ]
450
450
| Extract < keyof T , string > ;
451
451
452
452
export type DocumentOptions = {
@@ -771,9 +771,7 @@ export type TaskObject = Omit<EnqueuedTaskObject, "taskUid"> & {
771
771
finishedAt : string ;
772
772
} ;
773
773
774
- export type SwapIndexesParams = Array < {
775
- indexes : string [ ] ;
776
- } > ;
774
+ export type SwapIndexesParams = { indexes : string [ ] } [ ] ;
777
775
778
776
type CursorResults < T > = {
779
777
results : T [ ] ;
@@ -816,7 +814,7 @@ export type BatchObject = {
816
814
/** Progress and indexing step of the batch, null if the batch is finished */
817
815
progress : null | {
818
816
/** An array of all the steps currently being processed */
819
- steps : Array < {
817
+ steps : {
820
818
/**
821
819
* A string representing the name of the current step NOT stable. Only use
822
820
* for debugging purposes.
@@ -826,7 +824,7 @@ export type BatchObject = {
826
824
finished : number ;
827
825
/** Total number of tasks to finish before moving to the next step */
828
826
total : number ;
829
- } > ;
827
+ } [ ] ;
830
828
/** Percentage of progression of all steps currently being processed */
831
829
percentage : number ;
832
830
} ;
0 commit comments