From 41d27f8336f48dd2eaec53afafcceb81a58d0dfb Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Mon, 14 Jun 2021 10:59:34 +0200 Subject: [PATCH] fix(ts): correctly optional renderingContent --- index.d.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 937da49cd..419ac41b2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1250,7 +1250,7 @@ declare namespace algoliasearchHelper { /** * Ordered facet lists */ - order: string[]; + order?: string[]; }; /** * the ordering of facet values, within an individual list @@ -1260,14 +1260,14 @@ declare namespace algoliasearchHelper { /** * Ordered facet values */ - order: string[]; + order?: string[]; /** * How to display the remaining items. * - facet count (descending) * - alphabetical (ascending) * - hidden (show only pinned values) */ - sortRemainingBy: 'count' | 'alpha' | 'hidden'; + sortRemainingBy?: 'count' | 'alpha' | 'hidden'; }; }; }; @@ -1352,7 +1352,10 @@ declare namespace algoliasearchHelper { */ getFacetValues( attribute: string, - opts: any + opts: { + sortBy: string[], + facetOrdering: boolean; + } ): SearchResults.FacetValue[] | SearchResults.HierarchicalFacet | undefined; /**