Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ts: Migrate setup.js to typescript.
xoldyckka062a82f066b
diff --git a/tools/test-js-with-node b/tools/test-js-with-nodeindex e0b34191cc3..501b0cbbece 100755--- a/tools/test-js-with-node+++ b/tools/test-js-with-node@@ -181,7 +181,7 @@ EXEMPT_FILES = make_set("web/src/settings_user_groups_legacy.js","web/src/settings_user_topics.js","web/src/settings_users.js",- "web/src/setup.js",+ "web/src/setup.ts","web/src/spectators.js","web/src/spoilers.ts","web/src/starred_messages_ui.js",diff --git a/web/src/global.d.ts b/web/src/global.d.tsindex 43869d8aaff..0e9d20b1ec0 100644--- a/web/src/global.d.ts+++ b/web/src/global.d.ts@@ -15,6 +15,7 @@ type JQueryCaretRange = {// eslint-disable-next-line @typescript-eslint/consistent-type-definitionsinterface JQuery {expectOne(): JQuery;+ get_offset_to_window(): DOMRect;tab(action?: string): this; // From web/third/bootstrapmodal(action?: string): this; // From web/third/bootstrapdiff --git a/web/src/page_params.ts b/web/src/page_params.tsindex 7836050a085..4aabe185df6 100644--- a/web/src/page_params.ts+++ b/web/src/page_params.ts@@ -16,6 +16,8 @@ export const page_params: {is_moderator: boolean;is_owner: boolean;is_spectator: boolean;+ needs_tutorial: boolean;+ page_load_time: number;promote_sponsoring_zulip: boolean;realm_add_custom_emoji_policy: number;realm_avatar_changes_disabled: boolean;diff --git a/web/src/setup.js b/web/src/setup.tssimilarity index 100%rename from web/src/setup.jsrename to web/src/setup.ts