diff --git a/src/types/backgroundtasks.ts b/src/types/backgroundtasks.ts index b45b4f82..cb736748 100644 --- a/src/types/backgroundtasks.ts +++ b/src/types/backgroundtasks.ts @@ -2,14 +2,19 @@ export interface BgTaskStarted { job_id: string; } +export interface ProgressTask { + progress: number; + total: number; + description: string; +} + export interface BackgroundTaskStatus { job_id: string; job_category: string; status: string; running: boolean; progress?: number; - // TODO: type this properly - progress_tasks?: Record; + progress_tasks?: Record; } export interface BackgroundTaskResult {