mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
remove duplicity and simplify AppUpdaterEvent
This commit is contained in:
parent
b742a464c9
commit
7ebd91a652
4 changed files with 11 additions and 20 deletions
|
@ -1,6 +1,5 @@
|
|||
import type { Aria2Status } from "aria2";
|
||||
import type { Downloader } from "@shared";
|
||||
import { ProgressInfo, UpdateInfo } from "electron-updater";
|
||||
|
||||
export type GameShop = "steam" | "epic";
|
||||
export type CatalogueCategory = "recently_added" | "trending";
|
||||
|
@ -146,13 +145,8 @@ export interface SteamGame {
|
|||
}
|
||||
|
||||
export type AppUpdaterEvent =
|
||||
| { type: "error" }
|
||||
| { type: "checking-for-updates" }
|
||||
| { type: "update-not-available" }
|
||||
| { type: "update-available"; info: UpdateInfo }
|
||||
| { type: "update-downloaded" }
|
||||
| { type: "download-progress"; info: ProgressInfo }
|
||||
| { type: "update-cancelled" };
|
||||
| { type: "update-available"; info: { version: string } }
|
||||
| { type: "update-downloaded" };
|
||||
|
||||
/* Events */
|
||||
export interface StartGameDownloadPayload {
|
||||
|
@ -230,6 +224,3 @@ export interface RealDebridUser {
|
|||
premium: number;
|
||||
expiration: string;
|
||||
}
|
||||
export type AppUpdaterEvents =
|
||||
| { type: "update-available"; info: Partial<UpdateInfo> }
|
||||
| { type: "update-downloaded" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue