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

Commit 41d27f8

Browse files
committed
fix(ts): correctly optional renderingContent
1 parent a9ab4b8 commit 41d27f8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

index.d.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ declare namespace algoliasearchHelper {
12501250
/**
12511251
* Ordered facet lists
12521252
*/
1253-
order: string[];
1253+
order?: string[];
12541254
};
12551255
/**
12561256
* the ordering of facet values, within an individual list
@@ -1260,14 +1260,14 @@ declare namespace algoliasearchHelper {
12601260
/**
12611261
* Ordered facet values
12621262
*/
1263-
order: string[];
1263+
order?: string[];
12641264
/**
12651265
* How to display the remaining items.
12661266
* - facet count (descending)
12671267
* - alphabetical (ascending)
12681268
* - hidden (show only pinned values)
12691269
*/
1270-
sortRemainingBy: 'count' | 'alpha' | 'hidden';
1270+
sortRemainingBy?: 'count' | 'alpha' | 'hidden';
12711271
};
12721272
};
12731273
};
@@ -1352,7 +1352,10 @@ declare namespace algoliasearchHelper {
13521352
*/
13531353
getFacetValues(
13541354
attribute: string,
1355-
opts: any
1355+
opts: {
1356+
sortBy: string[],
1357+
facetOrdering: boolean;
1358+
}
13561359
): SearchResults.FacetValue[] | SearchResults.HierarchicalFacet | undefined;
13571360

13581361
/**

0 commit comments

Comments
 (0)