UNPKG

@lesnoypudge/utils-react

Version:

lesnoypudge's utils-react

9 lines (8 loc) 261 B
/** * Sets up an interval that repeatedly calls the * provided callback function. * * The interval is cleared whenever the delay changes * or when the component unmounts. */ export declare const useInterval: (callback: () => void, delay: number) => void;