id-scanner-lib
Version:
Browser-based ID card, QR code, and face recognition scanner with liveness detection
20 lines (16 loc) • 453 B
TypeScript
/**
* Type definitions for browser-image-compression
*/
declare module 'browser-image-compression' {
export interface Options {
maxSizeMB?: number;
maxWidthOrHeight?: number;
useWebWorker?: boolean;
maxIteration?: number;
quality?: number;
fileType?: string;
onProgress?: (progress: number) => void;
}
function imageCompression(file: File, options?: Options): Promise<File>;
export default imageCompression;
}