Skip to content

Commit dbb4d1d

Browse files
authored
Update facetFilter type name (#955)
1 parent 2414650 commit dbb4d1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface AddDocumentParams {
4646
primaryKey?: string
4747
}
4848

49-
export type FacetFilter = Array<string | string[]>
49+
export type Filter = Array<string | string[]>
5050

5151
export interface SearchParams<T> {
5252
offset?: number
@@ -55,7 +55,7 @@ export interface SearchParams<T> {
5555
attributesToCrop?: Array<Extract<keyof T, string> | '*'>
5656
cropLength?: number
5757
attributesToHighlight?: Array<Extract<keyof T, string> | '*'>
58-
filter?: FacetFilter | FacetFilter[] | string
58+
filter?: Filter | Filter[] | string
5959
facetsDistribution?: string[]
6060
matches?: boolean
6161
}
@@ -69,7 +69,7 @@ export interface SearchRequest {
6969
attributesToCrop?: string[]
7070
attributesToHighlight?: string[]
7171
facetsDistribution?: string[]
72-
filter?: FacetFilter | FacetFilter[] | string
72+
filter?: Filter | Filter[] | string
7373
matches?: boolean
7474
}
7575

0 commit comments

Comments
 (0)