Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
fix(ts): correct type for HierarchicalFacet parameter (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Feb 15, 2021
1 parent c71f9c5 commit 3b705dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.d.ts
Expand Up @@ -549,7 +549,9 @@ declare namespace algoliasearchHelper {
addFacet(facet: string): SearchParameters;
/* Add a refinement on a "normal" facet */
addFacetRefinement(facet: string, value: string): SearchParameters;
addHierarchicalFacet(facet: any): SearchParameters;
addHierarchicalFacet(
facet: SearchParameters.HierarchicalFacet
): SearchParameters;
addHierarchicalFacetRefinement(
facet: string,
path: string
Expand Down Expand Up @@ -1128,7 +1130,7 @@ declare namespace algoliasearchHelper {
type HierarchicalFacet = {
name: string;
attributes: string[];
separator: string;
separator?: string;
};

type OperatorList = {
Expand Down

0 comments on commit 3b705dd

Please sign in to comment.