diff --git a/libraries/deno-wasm-mod.ts b/libraries/deno-wasm-mod.ts index 0e16660..51027ea 100644 --- a/libraries/deno-wasm-mod.ts +++ b/libraries/deno-wasm-mod.ts @@ -15,7 +15,7 @@ async function execWasm( wasmArgs?: string[], ): never { const wasmCacheFileMeta = await fetchFileWithCache(wasmUrl); - const wasmCommandArgs = [wasmCacheFileMeta.cache_full_path, "--"]; + const wasmCommandArgs: string[] = [wasmCacheFileMeta.cache_full_path, "--"]; if (wasmArgs) { wasmCommandArgs.push(...wasmArgs); } @@ -24,6 +24,7 @@ async function execWasm( } if (import.meta.main) { + // TODO not works? why? await execWasm( "wasmer", "https://cdn.hatter.ink/doc/8998_BE8D1CBE6106C77968183F226E2129B5/jq.wasm",