Add an update-error listener

This commit is contained in:
Frank Noirot
2024-09-26 12:03:42 -04:00
parent 15b42eb8b7
commit df8d3740b6
4 changed files with 19 additions and 0 deletions

3
interface.d.ts vendored
View File

@ -69,6 +69,9 @@ export interface IElectronAPI {
onUpdateDownloaded: (
callback: (value: string) => void
) => Electron.IpcRenderer
onUpdateError: (
callback: (value: { error: Error }) => void
) => Electron
appRestart: () => void
}