Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

fix build

CJ Paisd2c73bda7a78
diff --git a/package.json b/package.json
index e4aa2c49..ba38b052 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 06a8d109..031ce7cd 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<NodeJS.Timeout>();
+ const upToDateTimeoutRef = useRef<ReturnType<typeof setTimeout>>();
const isManualCheckRef = useRef(false);
const downloadedBytesRef = useRef(0);
const contentLengthRef = useRef(0);
diff --git a/tsconfig.json b/tsconfig.json
index e49f745a..db83aff3 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,