mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
search: Fix implicit use of any.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
33430f06c3
commit
38f040ad79
@ -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,
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user