@ducor/hooks
Version:
A collection of useful React hooks for building modern web applications. Includes hooks for clipboard operations, window events, intervals, timeouts, and more.
9 lines (8 loc) • 340 B
TypeScript
import type { UseIntervalCallback, UseIntervalDelay } from "@ducor/types";
/**
* `useInterval` is a custom hook that runs a function at a specified interval.
*
* @see Docs https://ui.ducor.net/hooks/use-interval
*/
declare const useInterval: (callback: UseIntervalCallback, delay: UseIntervalDelay) => void;
export default useInterval;