Skip to content

Commit

Permalink
fix(ts): make all keys in facetOrdering optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Jun 15, 2021
1 parent db59cae commit d772f98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/client-search/src/types/Settings.ts
Expand Up @@ -321,7 +321,7 @@ export type Settings = {
/**
* pinned order of facet lists
*/
readonly order: readonly string[];
readonly order?: readonly string[];
};
/**
* the ordering of facet values, within an individual list
Expand All @@ -331,14 +331,14 @@ export type Settings = {
/**
* pinned order of facet values
*/
readonly order: readonly string[];
readonly order?: readonly string[];
/**
* How to display the remaining items.
* - facet count (descending)
* - alphabetical (ascending)
* - hidden (show only pinned values)
*/
readonly sortRemainingBy: 'count' | 'alpha' | 'hidden';
readonly sortRemainingBy?: 'count' | 'alpha' | 'hidden';
};
};
};
Expand Down

0 comments on commit d772f98

Please sign in to comment.