Skip to content

Commit b226107

Browse files
mvalancyclaude
andcommitted
Fix NodeJS.Timeout type error causing CI failure
- Replace NodeJS.Timeout with number type for browser setTimeout - Add proper type casting for setTimeout return value - Resolves critical lint/type check error blocking CI pipeline - Maintains proper timeout cleanup functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1a9ebf6 commit b226107

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/web/src/hooks/useHealthCheck.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function useHealthCheck(options: UseHealthCheckOptions = {}) {
5656
const checkHealth = useCallback(async () => {
5757
// Create AbortController for proper timeout handling
5858
const controller = new AbortController();
59-
let timeoutId: NodeJS.Timeout | null = null;
59+
let timeoutId: number | null = null;
6060

6161
try {
6262
setLoading(true);
@@ -66,7 +66,7 @@ export function useHealthCheck(options: UseHealthCheckOptions = {}) {
6666
controller.abort();
6767
setError('Health check timed out after 10 seconds');
6868
setLoading(false);
69-
}, 10000);
69+
}, 10000) as unknown as number;
7070

7171
// Fetch general health status
7272
const healthResponse = await fetch(`${API_BASE_URL}/health`, {

0 commit comments

Comments
 (0)