web: Fix selectors to correspond with annotated types.

TypeScript does not check that these annotations are consistent with
the given selector strings.  We need to ensure that ourselves for
runtime safety.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-03-19 11:45:03 -07:00
committed by Tim Abbott
parent 548805dff9
commit 85d5669a4a
12 changed files with 43 additions and 43 deletions

View File

@@ -12,7 +12,7 @@ export class UserSearch {
// details of populating the list when we change.
$widget = $("#user_search_section").expectOne();
$input = $<HTMLInputElement>(".user-list-filter").expectOne();
$input = $<HTMLInputElement>("input.user-list-filter").expectOne();
_reset_items: () => void;
_update_list: () => void;
_on_focus: () => void;