Skip to content

Commit 823ef1a

Browse files
committed
修改progressCallback参数
1 parent 21dba65 commit 823ef1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export declare namespace resume_up {
305305
/**
306306
* @default null
307307
*/
308-
progressCallback?: (data: any) => void
308+
progressCallback?: (uploadBytes: number, totalBytes: number) => void
309309

310310
/**
311311
* @default v1
@@ -328,7 +328,7 @@ export declare namespace resume_up {
328328
* @param partSize 分片上传v2必传字段 默认大小为4MB 分片大小范围为1 MB - 1 GB
329329
*/
330330
constructor(fname?: string, params?: any, mimeType?: string, resumeRecordFile?: string, version?:string, partSize?:number,
331-
progressCallback?: (data: any) => void);
331+
progressCallback?: (uploadBytes: number, totalBytes: number) => void);
332332
}
333333
}
334334

0 commit comments

Comments
 (0)