typeahead: Fix type of sorting_comparator.

This commit is contained in:
evykassirer 2024-01-11 12:07:37 -08:00 committed by Tim Abbott
parent 866a610664
commit ebb1105e2f
1 changed files with 1 additions and 1 deletions

View File

@ -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: