Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_list_tooltips: Avoid needless unchecked type assertion.
Anders Kaseorg324324f5a515
diff --git a/web/src/message_list_tooltips.ts b/web/src/message_list_tooltips.tsindex 0ad6158f588..5b69e317be7 100644--- a/web/src/message_list_tooltips.ts+++ b/web/src/message_list_tooltips.ts@@ -348,8 +348,7 @@ export function initialize(): void {});message_list_tooltip(".rendered_markdown time", {- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions- content: timerender.get_markdown_time_tooltip as tippy.Content,+ content: timerender.get_markdown_time_tooltip,onHidden(instance) {instance.destroy();},diff --git a/web/src/timerender.ts b/web/src/timerender.tsindex 9578293a4e0..c32286db994 100644--- a/web/src/timerender.ts+++ b/web/src/timerender.ts@@ -388,7 +388,7 @@ export function format_markdown_time(time: number | Date): string {return get_localized_date_or_time_for_format(time, "weekday_dayofyear_year_time");}-export function get_markdown_time_tooltip(reference: HTMLElement): DocumentFragment | string {+export function get_markdown_time_tooltip(reference: Element): DocumentFragment | string {if (reference instanceof HTMLTimeElement) {const time = parseISO(reference.dateTime);const tz_offset_str = get_tz_with_UTC_offset(time);