mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-24 03:55:15 +00:00
feat: improved type safety
This commit is contained in:
parent
c908bef966
commit
67a9615347
|
@ -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<string, any>;
|
||||
progress_tasks?: Record<string, ProgressTask>;
|
||||
}
|
||||
|
||||
export interface BackgroundTaskResult {
|
||||
|
|
Loading…
Reference in New Issue
Block a user