zhizhi/node_modules/dingtalk-jsapi/api/biz/util/compressImage.d.ts

26 lines
723 B
TypeScript
Raw Normal View History

/**
*
* @apiName biz.util.compressImage
*/
export interface IBizUtilCompressImageParams {
/** 要压缩的图片地址数组 */
filePaths: string[];
/** 压缩级别,支持 0 ~ 4 的整数,默认 4。 */
compressLevel?: number;
}
/**
*
* @apiName biz.util.compressImage
*/
export interface IBizUtilCompressImageResult {
/** 压缩后的路径数组 */
filePaths: string[];
}
/**
*
* @apiName biz.util.compressImage
* @supportVersion ios: 5.1.1 android: 5.1.1
*/
export declare function compressImage$(params: IBizUtilCompressImageParams): Promise<IBizUtilCompressImageResult>;
export default compressImage$;