Fixed process not cleared after download.

Closes  #160
This commit is contained in:
2024-06-21 10:41:49 +02:00
parent 38683bfe85
commit 0daf36719b
6 changed files with 35 additions and 10 deletions

View File

@@ -34,11 +34,18 @@ type DownloadInfo = {
created_at: string
}
export enum ProcessStatus {
Pending = 0,
Downloading,
Completed,
Errored,
}
type DownloadProgress = {
speed: number
eta: number
percentage: string
process_status: number
process_status: ProcessStatus
}
export type RPCResult = Readonly<{