watcher/dist_ts/dettle/throttle.d.ts
2024-04-18 21:12:37 +02:00

7 lines
243 B
TypeScript

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;