UNPKG

@tempfix/watcher

Version:

The file system watcher that strives for perfection, with no native dependencies and optional rename detection support.

12 lines (11 loc) 361 B
type Callback = () => void; type FN<Args extends unknown[], Return> = (...args: Args) => Return; type Debounced<Args extends unknown[]> = FN<Args, void> & { cancel: Callback; flush: Callback; }; type Throttled<Args extends unknown[]> = FN<Args, void> & { cancel: Callback; flush: Callback; }; export type { Callback, FN, Debounced, Throttled };