mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Fix bug in download task
This commit is contained in:
7
task.ts
7
task.ts
@@ -2,6 +2,7 @@ export enum TaskType {
|
||||
Download,
|
||||
ExportZip,
|
||||
UpdateMeiliSearchData,
|
||||
FixGalleryPage,
|
||||
}
|
||||
|
||||
export type Task<T extends TaskType = TaskType> = {
|
||||
@@ -29,10 +30,16 @@ export type TaskUpdateMeiliSearchDataProgress = {
|
||||
updated_gallery: number;
|
||||
};
|
||||
|
||||
export type TaskFixGalleryPageProgress = {
|
||||
total_gallery: number;
|
||||
checked_gallery: number;
|
||||
};
|
||||
|
||||
export type TaskProgressBasicType = {
|
||||
[TaskType.Download]: TaskDownloadProgess;
|
||||
[TaskType.ExportZip]: TaskExportZipProgress;
|
||||
[TaskType.UpdateMeiliSearchData]: TaskUpdateMeiliSearchDataProgress;
|
||||
[TaskType.FixGalleryPage]: TaskFixGalleryPageProgress;
|
||||
};
|
||||
|
||||
export type TaskProgress<T extends TaskType = TaskType> = {
|
||||
|
||||
Reference in New Issue
Block a user