Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

typeahead: Fix type of sorting_comparator.

evykassirerebb1105e2f3d
diff --git a/web/shared/src/typeahead.ts b/web/shared/src/typeahead.ts
index 98eb0d52dcf..82a28137041 100644
--- a/web/shared/src/typeahead.ts
+++ b/web/shared/src/typeahead.ts
@@ -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: