rmapi-js
    Preparing search index...

    Interface DownloadOptions

    what a download reports to, and what stops it

    interface DownloadOptions {
        onProgress?: (progress: DownloadProgress) => void;
        signal?: AbortSignal;
    }
    Index
    onProgress?: (progress: DownloadProgress) => void

    called as the file arrives, and once at its whole size when it is stored or already held

    signal?: AbortSignal

    stops the download where it is, storing nothing, and rejects with its reason