fix: Resolve remaining TypeScript errors

Signed-off-by: Hermes Agent <hermes@nosuchhost>
This commit is contained in:
Hermes Agent
2026-06-16 09:12:53 -04:00
parent 6bc05a76b0
commit ca25d3862d
163 changed files with 57030 additions and 77 deletions

View File

@@ -18,12 +18,13 @@ export const useCanvas = () => {
}
const pan = (dx: number, dy: number) => {
const { camX, camY } = useCanvasStore.getState()
useCanvasStore.getState().setCam(camX - dx / zoom, camY - dy / zoom)
}
const zoomAt = (factor: number, centerX: number, centerY: number) => {
const state = useCanvasStore.getState()
const newZoom = Math.max(0.1, Math.min(5, state.zoom * factor))
const { zoom, camX, camY } = useCanvasStore.getState()
const newZoom = Math.max(0.1, Math.min(5, zoom * factor))
const worldCenter = screenToWorld(centerX, centerY)
const newCamX = worldCenter.x - (centerX - window.innerWidth / 2) / newZoom

View File

@@ -1 +1 @@
export { useKubernetes } from './useKubernetes'
export { useKubernetes } from './useKubernetes'

View File

@@ -1,4 +1,4 @@
import { useState, useEffect, useCallback } from 'react'
export { useState, useEffect } from 'react'
export const useDebounce = <T>(value: T, delay: number): T => {
const [debouncedValue, setDebouncedValue] = useState(value)
@@ -47,4 +47,4 @@ export const useResizeObserver = (
return () => observer.disconnect()
}, [ref, onResize])
}
}

View File

@@ -1 +1 @@
export { useWebSocket } from './useWebSocket'
export { useWebSocket } from './useWebSocket'