From 1cf9d395a50ae1e0bee85ed327e00a14319ae46a Mon Sep 17 00:00:00 2001 From: Elias Norrby Date: Thu, 24 Feb 2022 15:25:00 +0100 Subject: [PATCH] fix(types): allow mixed arrays in numeric and tag filters --- packages/client-search/src/types/DeleteByFiltersOptions.ts | 4 ++-- packages/client-search/src/types/SearchOptions.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client-search/src/types/DeleteByFiltersOptions.ts b/packages/client-search/src/types/DeleteByFiltersOptions.ts index 22edbe014..d80181997 100644 --- a/packages/client-search/src/types/DeleteByFiltersOptions.ts +++ b/packages/client-search/src/types/DeleteByFiltersOptions.ts @@ -12,14 +12,14 @@ export type DeleteByFiltersOptions = { /** * Filter on numeric attributes. */ - readonly numericFilters?: string | readonly string[] | ReadonlyArray; + readonly numericFilters?: string | readonly string[] | ReadonlyArray; /** * Filter hits by tags. tagFilters is a different way of filtering, which relies on the _tags * attribute. It uses a simpler syntax than filters. You can use it when you want to do * simple filtering based on tags. */ - readonly tagFilters?: string | readonly string[] | ReadonlyArray; + readonly tagFilters?: string | readonly string[] | ReadonlyArray; /** * Search for entries around a central geolocation, enabling a geo search within a circular area. diff --git a/packages/client-search/src/types/SearchOptions.ts b/packages/client-search/src/types/SearchOptions.ts index e5615152a..1b28be7be 100644 --- a/packages/client-search/src/types/SearchOptions.ts +++ b/packages/client-search/src/types/SearchOptions.ts @@ -24,14 +24,14 @@ export type SearchOptions = { /** * Filter on numeric attributes. */ - readonly numericFilters?: string | readonly string[] | ReadonlyArray; + readonly numericFilters?: string | readonly string[] | ReadonlyArray; /** * Filter hits by tags. tagFilters is a different way of filtering, which relies on the _tags * attribute. It uses a simpler syntax than filters. You can use it when you want to do * simple filtering based on tags. */ - readonly tagFilters?: string | readonly string[] | ReadonlyArray; + readonly tagFilters?: string | readonly string[] | ReadonlyArray; /** * Determines how to calculate the total score for filtering.