Skip to content

Commit

Permalink
feat(types): Update compressImage types
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun authored and ZakaryCode committed Sep 22, 2022
1 parent 3c01fa9 commit 770574e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/taro/types/api/media/image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ declare module '../../index' {
fail?: (res: TaroGeneral.CallbackResult) => void
/** 压缩质量,范围0~100,数值越小,质量越低,压缩率越高(仅对jpg有效)。 */
quality?: number
/** 压缩后图片的宽度,单位为px,若不填写则默认以 compressedHeight 为准等比缩放。 */
compressedWidth?: number
/** 压缩后图片的高度,单位为px,若不填写则默认以 compressedWidth 为准等比缩放。 */
compressHeight?: number
/** 接口调用成功的回调函数 */
success?: (result: SuccessCallbackResult) => void
}
Expand Down

0 comments on commit 770574e

Please sign in to comment.