Convert remaining JS to TS in libSquoosh

This commit is contained in:
Steven
2021-07-26 22:37:00 -04:00
parent 3f2dd66726
commit 16a53caa48
4 changed files with 85 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ export function instantiateEmscriptenWasm<T extends EmscriptenWasm.Module>(
factory: EmscriptenWasm.ModuleFactory<T>,
path: string,
workerJS: string = '',
): Promise<T> {
): Promise<any> {
return factory({
locateFile(requestPath) {
// The glue code generated by emscripten uses the original