Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(client): fix type issues
Elian Doranac3ae0dbbe2c
diff --git a/apps/client/src/index.ts b/apps/client/src/index.tsindex 05fabd8eca..32f08fd3a4 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.tsindex 4572c4030c..9c5ab211dc 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;