Fixup Emscripten factory & types

These days Emscripten returns a Promise to the module directly without hacks.
This commit is contained in:
Ingvar Stepanyan
2020-09-25 00:46:31 +01:00
parent 684b041262
commit 4c4f05f2e3
7 changed files with 17 additions and 26 deletions

View File

@@ -3,4 +3,4 @@ interface QuantizerModule extends EmscriptenWasm.Module {
zx_quantize(data: BufferSource, width: number, height: number, dither: number): Uint8ClampedArray;
}
export default function(opts: EmscriptenWasm.ModuleOpts): QuantizerModule;
export default function(opts: EmscriptenWasm.ModuleOpts): Promise<QuantizerModule>;