mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
typeahead: Fix type of sorting_comparator.
This commit is contained in:
@@ -114,7 +114,7 @@ export function triage<T>(
|
||||
query: string,
|
||||
objs: T[],
|
||||
get_item: (x: T) => string,
|
||||
sorting_comparator?: () => number,
|
||||
sorting_comparator?: (a: T, b: T) => number,
|
||||
): {matches: T[]; rest: T[]} {
|
||||
/*
|
||||
We split objs into four groups:
|
||||
|
||||
Reference in New Issue
Block a user