🥅 Add error handling for download queue API
This commit is contained in:
1 parent
cf45b4c82c
commit
1ffd984eb3
2 files changed
+27
-5
No files matched your search
@@ -8,16 +8,17 @@ export type NormalizedDownloadQueueResponse = {
|
||||
export type NormalizedDownloadAppStat = {
|
||||
success: boolean;
|
||||
appId: string;
|
||||
totalDownload: number;
|
||||
} & (TorrentTotalDownload | UsenetTotalDownloas);
|
||||
|
||||
export type TorrentTotalDownload = {
|
||||
type: 'torrent';
|
||||
torrents: NormalizedTorrent[];
|
||||
totalDownload: number;
|
||||
totalUpload: number;
|
||||
};
|
||||
|
||||
export type UsenetTotalDownloas = {
|
||||
type: 'usenet';
|
||||
totalDownload: number;
|
||||
nzbs: UsenetQueueItem[];
|
||||
};
|
||||
Reference in new issue
Block a user