From 38f040ad79b2ad48ef019f2bca96409cc7d3f70a Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 2 May 2024 18:28:51 -0700 Subject: [PATCH] search: Fix implicit use of any. Signed-off-by: Anders Kaseorg --- web/src/search.ts | 2 +- web/src/search_suggestion.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;