ipull
Version:
The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.
24 lines (23 loc) • 513 B
TypeScript
export type DownloadFilePart = {
downloadURL?: string;
acceptRange?: boolean;
size: number;
};
export declare enum ChunkStatus {
NOT_STARTED = 0,
IN_PROGRESS = 1,
COMPLETE = 2
}
export type SaveProgressInfo = {
downloadId: string;
part: number;
chunks: ChunkStatus[];
chunkSize: number;
parallelStreams: number;
};
export type DownloadFile = {
totalSize: number;
localFileName: string;
parts: DownloadFilePart[];
downloadProgress?: SaveProgressInfo;
};