browser-image-compression icon indicating copy to clipboard operation
browser-image-compression copied to clipboard

The options interface is not exported

Open LeonardoCampello-dev opened this issue 3 years ago • 0 comments

I would like to use the following interface to type my const options: Options, but it is not exported in code

interface Options {
    /** @default Number.POSITIVE_INFINITY */
    maxSizeMB?: number;
    /** @default undefined */
    maxWidthOrHeight?: number;
    /** @default true */
    useWebWorker?: boolean;
    /** @default 10 */
    maxIteration?: number;
    /** Default to be the exif orientation from the image file */
    exifOrientation?: number;
    /** A function takes one progress argument (progress from 0 to 100) */
    onProgress?: (progress: number) => void;
    /** Default to be the original mime type from the image file */
    fileType?: string;
    /** @default 1.0 */
    initialQuality?: number;
    /** @default false */
    alwaysKeepResolution?: boolean;
    /** @default undefined */
    signal?: AbortSignal;
}

LeonardoCampello-dev avatar Jul 20 '22 18:07 LeonardoCampello-dev