UNPKG

@yireen/squoosh-browser

Version:

An image compression tool run in browser while @squoosh/lib can not.

14 lines (13 loc) 303 B
interface EncodeOptions { quality: number; } interface Props { options: EncodeOptions; onChange(newOptions: EncodeOptions): void; } interface QualityOptionArg { min?: number; max?: number; step?: number; } declare type Constructor<T extends {} = {}> = new (...args: any[]) => T;