From e9d0e43668b23fbde80612dcae09e47b65782f4a Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 2 May 2024 14:44:32 -0700 Subject: [PATCH] condense: Fix implicit use of any. Signed-off-by: Anders Kaseorg --- web/src/condense.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/condense.ts b/web/src/condense.ts index 9866d211a7..f56d508e63 100644 --- a/web/src/condense.ts +++ b/web/src/condense.ts @@ -259,7 +259,7 @@ export function condense_and_collapse(elems: JQuery): void { } export function initialize(): void { - $("#message_feed_container").on("click", ".message_expander", function (e) { + $("#message_feed_container").on("click", ".message_expander", function (this: HTMLElement, e) { // Expanding a message can mean either uncollapsing or // uncondensing it. const $row = $(this).closest(".message_row"); @@ -284,7 +284,7 @@ export function initialize(): void { e.preventDefault(); }); - $("#message_feed_container").on("click", ".message_condenser", function (e) { + $("#message_feed_container").on("click", ".message_condenser", function (this: HTMLElement, e) { const $row = $(this).closest(".message_row"); const id = rows.id($row); // Focus on the condensed message.