From fd8b2c557fbb3aaabeebfb3653df6ad4420497e7 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 3 May 2024 15:26:58 -0700 Subject: [PATCH] global: Rename with normal TypeScript module extension. Signed-off-by: Anders Kaseorg --- tools/test-js-with-node | 2 +- web/src/{global.d.ts => global.ts} | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename web/src/{global.d.ts => global.ts} (96%) diff --git a/tools/test-js-with-node b/tools/test-js-with-node index f21a7cc402..24e288dd06 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 1cf73a5113..4ac48be0a3 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 {