Skip to content

Commit

Permalink
fix(ts): correct type for HierarchicalFacet parameter (algolia/algoli…
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Feb 15, 2021
1 parent 7d48a92 commit 62e19d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/algoliasearch-helper/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 62e19d8

Please sign in to comment.