interface DownloadItem {
    byExtensionId?: string;
    byExtensionName?: string;
    bytesReceived: number;
    canResume: boolean;
    cookieStoreId?: string;
    danger: DangerType;
    endTime?: string;
    error?: InterruptReason;
    estimatedEndTime?: string;
    exists: boolean;
    filename: string;
    fileSize: number;
    id: number;
    incognito: boolean;
    mime?: string;
    paused: boolean;
    referrer?: string;
    startTime: string;
    state: State;
    totalBytes: number;
    url: string;
}
Index
byExtensionId?: string
byExtensionName?: string
bytesReceived: number

Number of bytes received so far from the host, without considering file compression.

canResume: boolean
cookieStoreId?: string

The cookie store ID of the contextual identity.

danger: DangerType

Indication of whether this download is thought to be safe or known to be suspicious.

endTime?: string

Number of milliseconds between the unix epoch and when this download ended.

Number indicating why a download was interrupted.

estimatedEndTime?: string
exists: boolean
filename: string

Absolute local path.

fileSize: number

Number of bytes in the whole file post-decompression, or -1 if unknown.

id: number

An identifier that is persistent across browser sessions.

incognito: boolean

False if this download is recorded in the history, true if it is not recorded.

mime?: string

The file's MIME type.

paused: boolean

True if the download has stopped reading data from the host, but kept the connection open.

referrer?: string
startTime: string

Number of milliseconds between the unix epoch and when this download began.

state: State

Indicates whether the download is progressing, interrupted, or complete.

totalBytes: number

Number of bytes in the whole file, without considering file compression, or -1 if unknown.

url: string

Absolute URL.