mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-17 03:00:13 +00:00
Promisify emscripten modules & fix webp examples (#817)
This commit is contained in:
2
codecs/webp/enc/webp_enc.d.ts
vendored
2
codecs/webp/enc/webp_enc.d.ts
vendored
@@ -4,4 +4,4 @@ interface WebPModule extends EmscriptenWasm.Module {
|
||||
encode(data: BufferSource, width: number, height: number, options: EncodeOptions): Uint8Array | null;
|
||||
}
|
||||
|
||||
export default function(opts: EmscriptenWasm.ModuleOpts): WebPModule;
|
||||
export default function(opts: EmscriptenWasm.ModuleOpts): Promise<WebPModule>;
|
||||
|
||||
Reference in New Issue
Block a user