Skip to content

Commit

Permalink
fix(types): allow mix of strings and arrays in facetFilters (#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnorrby authored Jan 25, 2022
1 parent 2c626a3 commit dfc2a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client-search/src/types/DeleteByFiltersOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type DeleteByFiltersOptions = {
/**
* Filter hits by facet value.
*/
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;

/**
* Filter on numeric attributes.
Expand Down
2 changes: 1 addition & 1 deletion packages/client-search/src/types/SearchOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type SearchOptions = {
/**
* Filter hits by facet value.
*/
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;

/**
* Create filters for ranking purposes, where records that match the filter are ranked highest.
Expand Down

0 comments on commit dfc2a09

Please sign in to comment.