mirror of
https://github.com/zadam/trilium.git
synced 2026-05-13 00:55:55 +02:00
chore(client): typecheck issues due to change in bootstrap definition
This commit is contained in:
2
apps/client/src/types.d.ts
vendored
2
apps/client/src/types.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user