UNPKG

@gdjiami/hooks

Version:

react hooks for mygzb.com

11 lines (10 loc) 258 B
export interface UseTimeoutOption { duration?: number; startOnMount?: boolean; callback?: Function; } export default function useTimeout(options?: UseTimeoutOption): { start: () => void; stop: () => void; ready: boolean; };