UNPKG

@tempfix/watcher

Version:

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

7 lines (6 loc) 243 B
import type { FN, Throttled } from './types.js'; declare const throttle: <Args extends unknown[]>(fn: FN<Args, unknown>, wait?: number, options?: { leading?: boolean; trailing?: boolean; }) => Throttled<Args>; export default throttle;