Function
getDefaultSortFn
(isItemSelectedFn: (itemId: string) => boolean)
Source from the content-addressed store, hash-verified
| 21 | } |
| 22 | |
| 23 | const getDefaultSortFn = (isItemSelectedFn: (itemId: string) => boolean) => (itemIdA: string, itemIdB: string) => |
| 24 | isItemSelectedFn(itemIdA) === isItemSelectedFn(itemIdB) ? 0 : isItemSelectedFn(itemIdA) ? -1 : 1 |
| 25 | const menuScrollMargins: ScrollIntoViewOptions = {startMargin: 0, endMargin: 8} |
| 26 | |
| 27 | function getDefaultItemFilter<T extends AutocompleteMenuItem>(filterValue: string) { |
Tested by
no test coverage detected