From 3d72ec80bb89778cda9dd7e0e14bdb04aab6c0b6 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 7 Jan 2026 22:01:35 +0200 Subject: [PATCH] refactor(client): get rid of any --- apps/client/src/index.ts | 10 +++++----- apps/client/src/types.d.ts | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/client/src/index.ts b/apps/client/src/index.ts index 588ebe361..8308395f5 100644 --- a/apps/client/src/index.ts +++ b/apps/client/src/index.ts @@ -12,8 +12,8 @@ async function bootstrap() { async function initJQuery() { const $ = (await import("jquery")).default; - (window as any).$ = $; - (window as any).jQuery = $; + window.$ = $; + window.jQuery = $; } async function setupGlob() { @@ -46,11 +46,11 @@ function loadStylesheets() { cssToLoad.push(themeCssUrl); } if (themeUseNextAsBase === "next") { - cssToLoad.push(`${assetPath}/stylesheets/theme-next.css`) + cssToLoad.push(`${assetPath}/stylesheets/theme-next.css`); } else if (themeUseNextAsBase === "next-dark") { - cssToLoad.push(`${assetPath}/stylesheets/theme-next-dark.css`) + cssToLoad.push(`${assetPath}/stylesheets/theme-next-dark.css`); } else if (themeUseNextAsBase === "next-light") { - cssToLoad.push(`${assetPath}/stylesheets/theme-next-light.css`) + cssToLoad.push(`${assetPath}/stylesheets/theme-next-light.css`); } cssToLoad.push(`${assetPath}/stylesheets/style.css`); diff --git a/apps/client/src/types.d.ts b/apps/client/src/types.d.ts index 9c5ab211d..2e2a36e6e 100644 --- a/apps/client/src/types.d.ts +++ b/apps/client/src/types.d.ts @@ -63,6 +63,9 @@ type RequireMethod = (moduleName: string) => any; declare global { interface Window { + $: JQueryStatic; + jQuery: JQueryStatic; + logError(message: string); logInfo(message: string);