@mantine/hooks
Version:
A collection of 50+ hooks for state and UI management
9 lines (8 loc) • 306 B
TypeScript
export interface UseTimeoutOptions {
autoInvoke: boolean;
}
export interface UseTimeoutReturnValue {
start: (...args: any[]) => void;
clear: () => void;
}
export declare function useTimeout(callback: (...args: any[]) => void, delay: number, options?: UseTimeoutOptions): UseTimeoutReturnValue;