export default useInterval; /** * useInterval is a custom hook to get useEffect and intervals to work together * * When trying to implement setInterval in a useEffect that happens onMount, the effect would only have the value of a prop or state variable on first render * This custom hook is to ensure that the callback of setInterval receives updated props * @see https://overreacted.io/making-setinterval-declarative-with-react-hooks/ * */ declare function useInterval(callback: any, delay: any): void;