@singulatron/types
Version:
TypeScript types for Singulatron. All javascript Singulatron clients (node, ng-client etc.) use these types.
21 lines (20 loc) • 510 B
TypeScript
export interface DownloadDetails {
id: string;
url: string;
fileName: string;
dir?: string;
progress?: number;
downloadedBytes: number;
fullFileSize?: number;
status: "inProgress" | "completed" | "paused" | "cancelled" | "failed";
filePath?: string;
paused?: boolean;
cancelled?: boolean;
error?: string;
}
export type DownloadsResponse = {
downloads: DownloadDetails[];
};
export interface DownloadStatusChangeEvent {
allDownloads: DownloadDetails[];
}