From d2c73bda7a78cb8a29528eab7507c8e57efd4245 Mon Sep 17 00:00:00 2001 From: CJ Pais Date: Fri, 27 Jun 2025 12:37:06 -0700 Subject: [PATCH] fix build --- package.json | 5 +++-- src/components/footer/Footer.tsx | 2 +- tsconfig.json | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e4aa2c4..ba38b05 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,12 @@ "zod": "^3.24.4" }, "devDependencies": { + "@tauri-apps/cli": "^2", + "@types/node": "^24.0.6", "@types/react": "^18.3.1", "@types/react-dom": "^18.3.1", "@vitejs/plugin-react": "^4.3.4", "typescript": "~5.6.2", - "vite": "^6.0.3", - "@tauri-apps/cli": "^2" + "vite": "^6.0.3" } } diff --git a/src/components/footer/Footer.tsx b/src/components/footer/Footer.tsx index 06a8d10..031ce7c 100644 --- a/src/components/footer/Footer.tsx +++ b/src/components/footer/Footer.tsx @@ -12,7 +12,7 @@ const Footer: React.FC = () => { const [version, setVersion] = useState(""); const [showUpToDate, setShowUpToDate] = useState(false); - const upToDateTimeoutRef = useRef(); + const upToDateTimeoutRef = useRef>(); const isManualCheckRef = useRef(false); const downloadedBytesRef = useRef(0); const contentLengthRef = useRef(0); diff --git a/tsconfig.json b/tsconfig.json index e49f745..db83aff 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target": "ES2020", "useDefineForClassFields": true, "lib": ["ES2020", "DOM", "DOM.Iterable"], + "types": ["node"], "module": "ESNext", "skipLibCheck": true,