Type Alias PartialProgressEvent

Represents the current upload or download progress a API-call.

It contains the number of loaded bytes and, if computable, the total payload size. If the total size cannot be determined, total will be undefined.

See MDN: https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent

type PartialProgressEvent = {
    loaded: ProgressEvent["loaded"];
    total?: ProgressEvent["total"];
}
Index

Properties

Properties

loaded: ProgressEvent["loaded"]

Number of bytes currently loaded.

total?: ProgressEvent["total"]

The total size of the payload, if computable.