compressImg.d.ts 412 B

1234567891011121314151617
  1. import types = require('./types');
  2. declare function compressImg(file: File | Blob | string, cb: types.AnyFn): void;
  3. declare function compressImg(
  4. file: File | Blob | string,
  5. options?: {
  6. maxWidth?: number;
  7. maxHeight?: number;
  8. width?: number;
  9. height?: number;
  10. mimeType?: string;
  11. quality?: number;
  12. },
  13. cb?: types.AnyFn
  14. ): void;
  15. export = compressImg;