7 lines
243 B
TypeScript
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;
|