From ac3ae0dbbe2ccb1efb7d385de2e733a13750b794 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 7 Jan 2026 21:02:27 +0200 Subject: [PATCH] chore(client): fix type issues --- apps/client/src/index.ts | 2 +- apps/client/src/types.d.ts | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/client/src/index.ts b/apps/client/src/index.ts index 05fabd8ec..32f08fd3a 100644 --- a/apps/client/src/index.ts +++ b/apps/client/src/index.ts @@ -59,7 +59,7 @@ function setBodyAttributes() { isElectron && "isElectron", hasNativeTitleBar && "native-titlebar", hasBackgroundEffects && "background-effects" - ].filter(Boolean); + ].filter(Boolean) as string[]; for (const classToSet of classesToSet) { document.body.classList.add(classToSet); diff --git a/apps/client/src/types.d.ts b/apps/client/src/types.d.ts index 4572c4030..9c5ab211d 100644 --- a/apps/client/src/types.d.ts +++ b/apps/client/src/types.d.ts @@ -1,4 +1,4 @@ -import { IconRegistry } from "@triliumnext/commons"; +import { IconRegistry, Locale } from "@triliumnext/commons"; import appContext, { AppContext } from "./components/app_context"; import type FNote from "./entities/fnote"; @@ -47,8 +47,16 @@ interface CustomGlobals { platform?: typeof process.platform; linter: typeof lint; hasNativeTitleBar: boolean; + hasBackgroundEffects: boolean; + isElectron: boolean; isRtl: boolean; iconRegistry: IconRegistry; + themeCssUrl: string; + themeUseNextAsBase?: "next" | "next-light" | "next-dark"; + iconPackCss: string; + headingStyle: "plain" | "underline" | "markdown"; + layoutOrientation: "vertical" | "horizontal"; + currentLocale: Locale; } type RequireMethod = (moduleName: string) => any;