mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 10:09:45 +00:00
* Returning an object seems to work well * This doesn't work * This does! * Better cast? * Updating usage in Squoosh
9 lines
319 B
TypeScript
9 lines
319 B
TypeScript
import { EncodeOptions } from '../../src/codecs/mozjpeg/encoder';
|
|
|
|
interface MozJPEGModule extends EmscriptenWasm.Module {
|
|
encode(data: BufferSource, width: number, height: number, options: EncodeOptions): Uint8Array;
|
|
free_result(): void;
|
|
}
|
|
|
|
export default function(opts: EmscriptenWasm.ModuleOpts): MozJPEGModule;
|