@hyext/types-ext-sdk-hy 3.12.2-beta.3 → 3.12.2-beta.4
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 +5 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3717,20 +3717,24 @@ type SaveFileCallback = (info: LocalFileInfo) => void;
|
|
|
3717
3717
|
|
|
3718
3718
|
/**
|
|
3719
3719
|
* 保存文件信息
|
|
3720
|
-
* @property url - 文件url
|
|
3720
|
+
* @property url - 文件url,type是url的时候必填
|
|
3721
|
+
* @property content - 文件内容,type是base64的时候必填
|
|
3721
3722
|
* @property name - 文件名
|
|
3722
3723
|
*/
|
|
3723
3724
|
type SaveFileInfo = {
|
|
3724
3725
|
url: string;
|
|
3726
|
+
content: string;
|
|
3725
3727
|
name: string;
|
|
3726
3728
|
};
|
|
3727
3729
|
|
|
3728
3730
|
/**
|
|
3729
3731
|
* 批量保存文件到本地参数
|
|
3732
|
+
* @property type - 文件类型, url-url, base64-base64
|
|
3730
3733
|
* @property fileList - 要保留的资源md5列表,至少传入一个
|
|
3731
3734
|
* @property callback - 单个文件保存结果回调
|
|
3732
3735
|
*/
|
|
3733
3736
|
type SaveFilesReq = {
|
|
3737
|
+
type: string;
|
|
3734
3738
|
fileList: SaveFileInfo[];
|
|
3735
3739
|
callback: SaveFileCallback;
|
|
3736
3740
|
};
|