Skip to content

Commit 326c833

Browse files
authored
fix(types): allow mixed arrays in numeric and tag filters (#1395)
1 parent e8f08ed commit 326c833

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ export type DeleteByFiltersOptions = {
1212
/**
1313
* Filter on numeric attributes.
1414
*/
15-
readonly numericFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
15+
readonly numericFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
1616

1717
/**
1818
* Filter hits by tags. tagFilters is a different way of filtering, which relies on the _tags
1919
* attribute. It uses a simpler syntax than filters. You can use it when you want to do
2020
* simple filtering based on tags.
2121
*/
22-
readonly tagFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
22+
readonly tagFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
2323

2424
/**
2525
* Search for entries around a central geolocation, enabling a geo search within a circular area.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export type SearchOptions = {
2424
/**
2525
* Filter on numeric attributes.
2626
*/
27-
readonly numericFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
27+
readonly numericFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
2828

2929
/**
3030
* Filter hits by tags. tagFilters is a different way of filtering, which relies on the _tags
3131
* attribute. It uses a simpler syntax than filters. You can use it when you want to do
3232
* simple filtering based on tags.
3333
*/
34-
readonly tagFilters?: string | readonly string[] | ReadonlyArray<readonly string[]>;
34+
readonly tagFilters?: string | readonly string[] | ReadonlyArray<readonly string[] | string>;
3535

3636
/**
3737
* Determines how to calculate the total score for filtering.

0 commit comments

Comments
 (0)