Skip to content

Commit dfc2a09

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

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎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-
readonlyfacetFilters?: string|readonlystring[]|ReadonlyArray<readonlystring[]>;
10+
readonlyfacetFilters?: string|readonlystring[]|ReadonlyArray<readonlystring[]|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-
readonlyfacetFilters?: string|readonlystring[]|ReadonlyArray<readonlystring[]>;
17+
readonlyfacetFilters?: string|readonlystring[]|ReadonlyArray<readonlystring[]|string>;
1818

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

0 commit comments

Comments
 (0)