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

Commit

Permalink
fix(ts): correctly optional renderingContent
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Jun 14, 2021
1 parent a9ab4b8 commit 41d27f8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ declare namespace algoliasearchHelper {
/**
* Ordered facet lists
*/
order: string[];
order?: string[];
};
/**
* the ordering of facet values, within an individual list
Expand All @@ -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';
};
};
};
Expand Down Expand Up @@ -1352,7 +1352,10 @@ declare namespace algoliasearchHelper {
*/
getFacetValues(
attribute: string,
opts: any
opts: {
sortBy: string[],
facetOrdering: boolean;
}
): SearchResults.FacetValue[] | SearchResults.HierarchicalFacet | undefined;

/**
Expand Down

0 comments on commit 41d27f8

Please sign in to comment.