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.

global: Rename with normal TypeScript module extension.

Anders Kaseorgfd8b2c557fbb
diff --git a/tools/test-js-with-node b/tools/test-js-with-node
index f21a7cc4026..24e288dd063 100755
--- a/tools/test-js-with-node
+++ b/tools/test-js-with-node
@@ -112,7 +112,7 @@ EXEMPT_FILES = make_set(
"web/src/flatpickr.ts",
"web/src/gear_menu.js",
"web/src/giphy.js",
- "web/src/global.d.ts",
+ "web/src/global.ts",
"web/src/hash_util.ts",
"web/src/hashchange.js",
"web/src/hbs.d.ts",
diff --git a/web/src/global.d.ts b/web/src/global.ts
similarity index 96%
rename from web/src/global.d.ts
rename to web/src/global.ts
index 1cf73a51130..4ac48be0a35 100644
--- a/web/src/global.d.ts
+++ b/web/src/global.ts
@@ -25,6 +25,7 @@ type JQueryIdleOptions = Partial<{
declare global {
let zulip_test: any; // eslint-disable-line @typescript-eslint/no-explicit-any
+ // eslint-disable-next-line @typescript-eslint/no-namespace
namespace JQueryValidation {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface ValidationOptions {