From 11e498f9371e93927141bf688ba4e7b220d78362 Mon Sep 17 00:00:00 2001 From: Temidayo32 Date: Tue, 5 Mar 2024 15:21:59 +0000 Subject: [PATCH] resize_handler: Convert module to Typescript. --- tools/test-js-with-node | 2 +- web/src/{resize_handler.js => resize_handler.ts} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename web/src/{resize_handler.js => resize_handler.ts} (97%) diff --git a/tools/test-js-with-node b/tools/test-js-with-node index 3dcef1058d..a43c2e40a1 100755 --- a/tools/test-js-with-node +++ b/tools/test-js-with-node @@ -185,7 +185,7 @@ EXEMPT_FILES = make_set( "web/src/reload_setup.js", "web/src/reminder.js", "web/src/resize.ts", - "web/src/resize_handler.js", + "web/src/resize_handler.ts", "web/src/rows.ts", "web/src/scheduled_messages.ts", "web/src/scheduled_messages_feed_ui.ts", diff --git a/web/src/resize_handler.js b/web/src/resize_handler.ts similarity index 97% rename from web/src/resize_handler.js rename to web/src/resize_handler.ts index 9ac04c6f9c..c5d4b089e1 100644 --- a/web/src/resize_handler.js +++ b/web/src/resize_handler.ts @@ -11,7 +11,7 @@ import * as util from "./util"; export let _old_width = $(window).width(); -export function handler() { +export function handler(): void { const new_width = $(window).width(); const mobile = util.is_mobile();