You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have identified a mismatch between the ProgressChanged type definition provided in the library and the actual structure observed at runtime. Specifically, the NewProgress and OldProgress objects do not match the documented type definition and instead contain an additional nested structure.
Expected Behavior
The type definition in index.d.ts (lines 4147-4172) indicates the following structure for ProgressChanged:
This mismatch can lead to runtime errors or confusion when working with the library in TypeScript, as the actual structure does not align with the documented types. For example, the following code fails unless adjusted for the nesting:
Description
I have identified a mismatch between the
ProgressChanged
type definition provided in the library and the actual structure observed at runtime. Specifically, theNewProgress
andOldProgress
objects do not match the documented type definition and instead contain an additional nested structure.Expected Behavior
The type definition in
index.d.ts
(lines 4147-4172) indicates the following structure forProgressChanged
:At runtime, I expect
NewProgress
andOldProgress
to directly contain properties likeUploadedBytes
,TotalBytes
, etc.Observed Behavior
At runtime, the
NewProgress
andOldProgress
object contains an additional nestedProgressChanged
object, as shown in the console logs:Environment
Additional Context
This mismatch can lead to runtime errors or confusion when working with the library in TypeScript, as the actual structure does not align with the documented types. For example, the following code fails unless adjusted for the nesting:
The text was updated successfully, but these errors were encountered: