Skip to content

Commit

Permalink
fix(rules): automaticOptionalFacetFilters type takes the same input a…
Browse files Browse the repository at this point in the history
…s automaticFacetFilters (#1279)
  • Loading branch information
Samuel Bodin authored Jun 21, 2021
1 parent 27433a7 commit 831a3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client-search/src/types/Rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export type ConsequenceParams = {
* Same syntax as automaticFacetFilters, but the engine treats the filters as optional.
* Behaves like optionalFilters.
*/
readonly automaticOptionalFacetFilters?: readonly AutomaticFacetFilter[];
readonly automaticOptionalFacetFilters?: readonly AutomaticFacetFilter[] | readonly string[];

/**
* Content defining how the search interface should be rendered.
Expand Down

0 comments on commit 831a3de

Please sign in to comment.