Skip to main content
Version: v7.0.0

ProgressType


Import
import { ProgressType } from "@hyper-fetch/core"

Preview

type ProgressType = {
loaded: number;
progress: number;
sizeLeft: number;
startTimestamp: number;
timeLeft: number | null;
total: number;
}

Structure

ProgressType
NameTypeDescription
loaded
number

Loaded size in bytes

progress
number

Progress in percentage (0-100)

sizeLeft
number

Size left in bytes

startTimestamp
number

Start timestamp in milliseconds

timeLeft
number | null

Time left in seconds (null if not available)

total
number

Total size in bytes

On this page