Skip to content

Commit 831a3de

Browse files
author
Samuel Bodin
authored
fix(rules): automaticOptionalFacetFilters type takes the same input as automaticFacetFilters (#1279)
1 parent 27433a7 commit 831a3de

File tree

1 file changed

+1
-1
lines changed
  • packages/client-search/src/types

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export type ConsequenceParams = {
124124
* Same syntax as automaticFacetFilters, but the engine treats the filters as optional.
125125
* Behaves like optionalFilters.
126126
*/
127-
readonly automaticOptionalFacetFilters?: readonly AutomaticFacetFilter[];
127+
readonly automaticOptionalFacetFilters?: readonly AutomaticFacetFilter[] | readonly string[];
128128

129129
/**
130130
* Content defining how the search interface should be rendered.

0 commit comments

Comments
 (0)