Skip to content

Commit d772f98

Browse files
committed
fix(ts): make all keys in facetOrdering optional
fixes algolia/algoliasearch-helper-js#827
1 parent db59cae commit d772f98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/client-search/src/types/Settings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export type Settings = {
321321
/**
322322
* pinned order of facet lists
323323
*/
324-
readonly order: readonly string[];
324+
readonly order?: readonly string[];
325325
};
326326
/**
327327
* the ordering of facet values, within an individual list
@@ -331,14 +331,14 @@ export type Settings = {
331331
/**
332332
* pinned order of facet values
333333
*/
334-
readonly order: readonly string[];
334+
readonly order?: readonly string[];
335335
/**
336336
* How to display the remaining items.
337337
* - facet count (descending)
338338
* - alphabetical (ascending)
339339
* - hidden (show only pinned values)
340340
*/
341-
readonly sortRemainingBy: 'count' | 'alpha' | 'hidden';
341+
readonly sortRemainingBy?: 'count' | 'alpha' | 'hidden';
342342
};
343343
};
344344
};

0 commit comments

Comments
 (0)