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