Closed LeonardoCampello-dev closed 1 year ago
I would like to use the following interface to type my const options: Options, but it is not exported in code
const options: Options
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; }
I would like to use the following interface to type my
const options: Options
, but it is not exported in code