diff --git a/src/main/events/autoupdater/check-for-updates.ts b/src/main/events/autoupdater/check-for-updates.ts index 18364d7f..aa63575f 100644 --- a/src/main/events/autoupdater/check-for-updates.ts +++ b/src/main/events/autoupdater/check-for-updates.ts @@ -22,8 +22,8 @@ const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => { .addListener("checking-for-update", () => { sendEvent({ type: "checking-for-updates" }); }) - .addListener("update-not-available", (info: UpdateInfo) => { - sendEvent({ type: "update-not-available", info }); + .addListener("update-not-available", () => { + sendEvent({ type: "update-not-available" }); }) .addListener("update-available", (info: UpdateInfo) => { sendEvent({ type: "update-available", info }); @@ -34,8 +34,8 @@ const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => { .addListener("download-progress", (info: ProgressInfo) => { sendEvent({ type: "download-progress", info }); }) - .addListener("update-cancelled", (info: UpdateInfo) => { - sendEvent({ type: "update-cancelled", info }); + .addListener("update-cancelled", () => { + sendEvent({ type: "update-cancelled" }); }); if (app.isPackaged) { diff --git a/src/types/index.ts b/src/types/index.ts index be8ebbd8..0abce31f 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -148,8 +148,8 @@ export interface SteamGame { export type AppUpdaterEvents = | { type: "error" } | { type: "checking-for-updates" } - | { type: "update-not-available"; info: UpdateInfo } + | { type: "update-not-available" } | { type: "update-available"; info: UpdateInfo } | { type: "update-downloaded" } | { type: "download-progress"; info: ProgressInfo } - | { type: "update-cancelled"; info: UpdateInfo }; + | { type: "update-cancelled" };