---
url: >-
  https://haihv.github.io/valifetch/api/index/type-aliases/DownloadProgressEvent.md
---

# Type Alias: DownloadProgressEvent

> **DownloadProgressEvent** = `object`

Defined in: [src/types/options.ts:191](https://github.com/haihv/valifetch/blob/285835d38a6676b98d2ee1a93e23166c6c834cb2/src/types/options.ts#L191)

Progress event fired during response body download

## Properties

### loaded

> **loaded**: `number`

Defined in: [src/types/options.ts:193](https://github.com/haihv/valifetch/blob/285835d38a6676b98d2ee1a93e23166c6c834cb2/src/types/options.ts#L193)

Bytes received so far

***

### percent

> **percent**: `number` | `undefined`

Defined in: [src/types/options.ts:197](https://github.com/haihv/valifetch/blob/285835d38a6676b98d2ee1a93e23166c6c834cb2/src/types/options.ts#L197)

Download percentage 0–100 (undefined when total is unknown)

***

### total

> **total**: `number` | `undefined`

Defined in: [src/types/options.ts:195](https://github.com/haihv/valifetch/blob/285835d38a6676b98d2ee1a93e23166c6c834cb2/src/types/options.ts#L195)

Total bytes expected (undefined when no Content-Length header is present)
