diff --git a/src/hooks/useViewportChange.ts b/src/hooks/useViewportChange.ts index 8b143356..c72ec6da 100644 --- a/src/hooks/useViewportChange.ts +++ b/src/hooks/useViewportChange.ts @@ -9,7 +9,7 @@ const useViewportChange = ( callback: () => void, throttleInterval: number = 70, ) => { - const handleWindowResize = useRef() + const handleWindowResize = useRef<(...args: any[]) => any>() useEffect(() => { handleWindowResize.current = throttle(callback, throttleInterval)