UNPKG

@tempfix/watcher

Version:

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

15 lines (7 loc) 374 B
/* MAIN */ 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 */ export type {Callback, FN, Debounced, Throttled};