diff --git a/web/src/search.ts b/web/src/search.ts index 2c6f1733f6..e64dbebd10 100644 --- a/web/src/search.ts +++ b/web/src/search.ts @@ -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(); const bootstrap_typeahead_input: TypeaheadInputElement = { $element: $search_query_box, diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.ts index c0fdea5a3e..83100df3cd 100644 --- a/web/src/search_suggestion.ts +++ b/web/src/search_suggestion.ts @@ -24,7 +24,7 @@ type UserPillItem = { type TermPattern = Omit & Partial>; -type Suggestion = { +export type Suggestion = { description_html: string; search_string: string; is_person?: boolean;