Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

resize_handler: Convert module to Typescript.

Temidayo3211e498f9371e
diff --git a/tools/test-js-with-node b/tools/test-js-with-node
index 3dcef1058d1..a43c2e40a1f 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 9ac04c6f9c0..c5d4b089e10 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();