Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ts: Convert night_mode module to TypeScript.
Priyank Patel6ed635b5ed36
diff --git a/static/js/night_mode.js b/static/js/night_mode.tssimilarity index 68%rename from static/js/night_mode.jsrename to static/js/night_mode.tsindex 4b732822d3a..2dc4f74feb7 100644--- a/static/js/night_mode.js+++ b/static/js/night_mode.ts@@ -1,13 +1,13 @@import $ from "jquery";-export function enable() {+export function enable(): void {$("body").removeClass("color-scheme-automatic").addClass("night-mode");}-export function disable() {+export function disable(): void {$("body").removeClass("color-scheme-automatic").removeClass("night-mode");}-export function default_preference_checker() {+export function default_preference_checker(): void {$("body").removeClass("night-mode").addClass("color-scheme-automatic");}diff --git a/tools/test-js-with-node b/tools/test-js-with-nodeindex 2852d78a9cf..327b0de0a1d 100755--- a/tools/test-js-with-node+++ b/tools/test-js-with-node@@ -95,7 +95,7 @@ EXEMPT_FILES = {"static/js/muting_ui.js","static/js/narrow.js","static/js/navigate.js",- "static/js/night_mode.js",+ "static/js/night_mode.ts","static/js/notifications.js","static/js/overlays.js","static/js/padded_widget.js",