Skip to content

Commit dfc2a09

Browse files
authored
fix(types): allow mix of strings and arrays in facetFilters (#1384)
1 parent 2c626a3 commit dfc2a09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/client-search/src/types/DeleteByFiltersOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type DeleteByFiltersOptions = {
77
/**
88
* Filter hits by facet value.
99
*/
10-
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
10+
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
1111

1212
/**
1313
* Filter on numeric attributes.

packages/client-search/src/types/SearchOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type SearchOptions = {
1414
/**
1515
* Filter hits by facet value.
1616
*/
17-
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
17+
readonly facetFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
1818

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

0 commit comments

Comments
 (0)