-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Adding types for progress event callbacks #4674
Copy link
Copy link
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels