@hyext/types-ext-sdk-hy 3.17.0-beta.1 → 3.17.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +19 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4521,6 +4521,23 @@ type CleanResParams = {
|
|
|
4521
4521
|
reserveMD5List: string[];
|
|
4522
4522
|
};
|
|
4523
4523
|
|
|
4524
|
+
/**
|
|
4525
|
+
* 保存进度信息
|
|
4526
|
+
* @property url - 文件url
|
|
4527
|
+
* @property bytesTotal - 文件总大小,单位是字
|
|
4528
|
+
* @property bytesLoaded - 已加载的大小,单位是字节
|
|
4529
|
+
*/
|
|
4530
|
+
type FileProgressInfo = {
|
|
4531
|
+
url: string;
|
|
4532
|
+
bytesTotal: number;
|
|
4533
|
+
bytesLoaded: number;
|
|
4534
|
+
};
|
|
4535
|
+
|
|
4536
|
+
/**
|
|
4537
|
+
* @param info - 保存进度信息
|
|
4538
|
+
*/
|
|
4539
|
+
type SaveFileProgressCallback = (info: FileProgressInfo) => void;
|
|
4540
|
+
|
|
4524
4541
|
/**
|
|
4525
4542
|
* 本地文件信息
|
|
4526
4543
|
* @property status - 状态码,0是成功,非0失败
|
|
@@ -4562,12 +4579,14 @@ type SaveFileInfo = {
|
|
|
4562
4579
|
* @property fileList - 要保留的资源md5列表,至少传入一个
|
|
4563
4580
|
* @property [authKeys] - 需要授权的场景值
|
|
4564
4581
|
* @property callback - 单个文件保存结果回调
|
|
4582
|
+
* @property progressCallback - 单个文件保存进度回调
|
|
4565
4583
|
*/
|
|
4566
4584
|
type SaveFilesReq = {
|
|
4567
4585
|
type: string;
|
|
4568
4586
|
fileList: SaveFileInfo[];
|
|
4569
4587
|
authKeys?: string[];
|
|
4570
4588
|
callback: SaveFileCallback;
|
|
4589
|
+
progressCallback: SaveFileProgressCallback;
|
|
4571
4590
|
};
|
|
4572
4591
|
|
|
4573
4592
|
/**
|