search: Fix implicit use of any.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-02 18:28:51 -07:00 committed by Tim Abbott
parent 33430f06c3
commit 38f040ad79
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ export function initialize({on_narrow_search}: {on_narrow_search: OnNarrowSearch
// (It's a bit of legacy that we have an object with only one important
// field. There's also a "search_string" field on each element that actually
// just represents the key of the hash, so it's redundant.)
let search_map = new Map();
let search_map = new Map<string, search_suggestion.Suggestion>();
const bootstrap_typeahead_input: TypeaheadInputElement = {
$element: $search_query_box,

View File

@ -24,7 +24,7 @@ type UserPillItem = {
type TermPattern = Omit<NarrowTerm, "operand"> & Partial<Pick<NarrowTerm, "operand">>;
type Suggestion = {
export type Suggestion = {
description_html: string;
search_string: string;
is_person?: boolean;