Skip to content

Build your personal knowledge base with Trilium Notes

chore(client): typecheck issues due to change in bootstrap definition

Elian Doran0b136f3aae06
diff --git a/apps/client/src/types.d.ts b/apps/client/src/types.d.ts
index 545ff8e029..9891c1472f 100644
--- a/apps/client/src/types.d.ts
+++ b/apps/client/src/types.d.ts
@@ -15,7 +15,7 @@ interface ElectronProcess {
platform: string;
}
-interface CustomGlobals extends BootstrapDefinition {
+interface CustomGlobals extends Extract<BootstrapDefinition, { dbInitialized: true }> {
isDesktop: typeof utils.isDesktop;
isMobile: typeof utils.isMobile;
getComponentByEl: typeof appContext.getComponentByEl;