tsconfig: Enable noUncheckedIndexedAccess.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-05-23 15:02:38 -07:00
parent 4e91572c96
commit 804c3706ff
61 changed files with 210 additions and 205 deletions

View File

@@ -108,7 +108,7 @@ function set_password_toggle_label(
): void {
$(password_selector).attr("aria-label", label);
if (tippy_tooltips) {
const element: tippy.ReferenceElement = $(password_selector)[0];
const element: tippy.ReferenceElement = $(password_selector)[0]!;
const tippy_instance = element._tippy ?? tippy.default(element);
tippy_instance.setContent(label);
} else {