diff --git a/package.json b/package.json index 0a2a91d..553d110 100644 --- a/package.json +++ b/package.json @@ -9,19 +9,19 @@ }, "license": "MIT", "devDependencies": { - "autoprefixer": "^10.4.13", + "autoprefixer": "^10.4.14", "postcss": "^8.4.21", - "tailwindcss": "^3.2.7", - "typescript": "^4.9.5", - "vite": "^4.1.4", - "vite-plugin-solid": "^2.5.0" + "tailwindcss": "^3.3.0", + "typescript": "^5.0.2", + "vite": "^4.2.1", + "vite-plugin-solid": "^2.6.1" }, "dependencies": { - "@types/diff": "^5.0.2", + "@types/diff": "^5.0.3", "diff": "^5.1.0", "solid-headless": "^0.13.1", "solid-heroicons": "^3.1.1", - "solid-js": "^1.6.11", + "solid-js": "^1.6.16", "xlsx": "^0.18.5" } } diff --git a/src/functions/fetch.ts b/src/functions/fetch.ts index 6cd92be..f3e0744 100644 --- a/src/functions/fetch.ts +++ b/src/functions/fetch.ts @@ -1,9 +1,15 @@ /* @refresh reload */ import type { FetchResultsProps, WebWorkerProps } from '../types/interfaces'; -onmessage = async (e) => { +onmessage = async (e: MessageEvent) => { console.log("Worker: Message received from main script") - const { expression, simplifyEnabled, hideValue, sortValue, hideIntermediates }: WebWorkerProps = e.data; + const { + expression, + simplifyEnabled, + hideValue, + sortValue, + hideIntermediates + } = e.data; const result: FetchResultsProps = { fetchResult: null, diff --git a/src/truth-table.tsx b/src/truth-table.tsx index 3f609e1..66d05ee 100644 --- a/src/truth-table.tsx +++ b/src/truth-table.tsx @@ -120,8 +120,8 @@ hide=${ hideValues().value }&sort=${ sortValues().value }&hideIntermediate=${ hi worker.postMessage(input); - worker.onmessage = (e): void => { - const data: FetchResultsProps = e.data; + worker.onmessage = (e: MessageEvent): void => { + const data = e.data; setIsLoaded(true); if (data.fetchResult) { setFetchResult(data.fetchResult);