@e-group/hooks
Version:
eGroup team react-hooks that share across projects.
10 lines (9 loc) • 330 B
TypeScript
declare type Callback = () => void;
declare type IsReady = () => boolean | null;
declare type Clear = () => void;
declare type Set = () => void;
/**
* https://github.com/streamich/react-use/blob/master/src/useTimeoutFn.ts
*/
export default function useTimeout(cb: Callback, ms: number | null): [IsReady, Clear, Set];
export {};