feat(desktop): update preload bridge types for enhanced update-error and getVersion

This commit is contained in:
Jannis Braun
2026-03-21 02:30:06 +01:00
parent a7d5abfca9
commit 6ebb124d25
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -24,9 +24,10 @@ interface BackspaceElectronAPI {
// Auto-update (Task 2.1)
onUpdateAvailable: (callback: (info: { version: string }) => void) => void;
onUpdateDownloaded: (callback: (info: { version: string }) => void) => void;
onUpdateError: (callback: (error: string) => void) => void;
onUpdateError: (callback: (error: { message: string; releaseUrl: string }) => void) => void;
installUpdate: () => void;
checkForUpdates: () => void;
getVersion: () => Promise<string>;
// Window focus (Task 2.2)
onWindowFocusChange: (callback: (focused: boolean) => void) => void;