Skip to content

Adding types for progress event callbacks #4674

@JohannCooper

Description

@JohannCooper

Is your feature request related to a problem? Please describe.

The current types for onUploadProgress and onDownloadProgress use any as the type for the event passed to these callbacks. However, the documentation for the Request Config describes this event as the "native progress event".

Describe the solution you'd like

Change the type of the event passed to the progress event callbacks to the native ProgressEvent type.

Describe alternatives you've considered

If I have misunderstood the above documentation, I would recommend creating custom, exported types for these progress events to remove the use of the any type.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions