Skip to content

Commit

Permalink
Remove circular reference in type
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa committed Jun 30, 2020
1 parent 727b9a5 commit 5c11ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface AddDocumentParams {
primaryKey?: string
}

export type FacetFilter = string | FacetFilter[]
export type FacetFilter = (string | string[])[]

export interface SearchParams {
offset?: number
Expand All @@ -61,7 +61,7 @@ export interface SearchParams {
cropLength?: number
attributesToHighlight?: string[] | string
filters?: string
facetFilters?: FacetFilter[]
facetFilters?: string | FacetFilter | FacetFilter[]
facetsDistribution?: string[]
matches?: boolean
}
Expand Down

0 comments on commit 5c11ff6

Please sign in to comment.