diff --git a/www/src/main.ts b/www/src/main.ts index 9fe63ad..23fef0c 100644 --- a/www/src/main.ts +++ b/www/src/main.ts @@ -34,7 +34,7 @@ async function scanImageBuffer() { lastUpdate = Date.now(); - const result: TopCode[] = await new Promise(resolve => { + const result = await new Promise(resolve => { resolve(scan(buffer, WIDTH, HEIGHT)); }); deltaTime = Date.now() - lastUpdate; diff --git a/www/tsconfig.json b/www/tsconfig.json index 75abdef..5019a94 100644 --- a/www/tsconfig.json +++ b/www/tsconfig.json @@ -7,7 +7,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "bundler", + "moduleResolution": "node", "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true,