UNPKG

apply-hooks

Version:

A high-quality & reliable JavaScript Hooks library.

15 lines (14 loc) 408 B
export interface IAddTaskOptions { cb: () => any; loopCount?: number; loopTime?: number; } declare const setupEventLoop: () => void; declare const closeEventLoop: () => boolean; declare const addEventLoopTask: (options: IAddTaskOptions) => void; declare const useEventLoop: () => [ typeof addEventLoopTask, typeof closeEventLoop, typeof setupEventLoop ]; export default useEventLoop;