8 lines
265 B
TypeScript
8 lines
265 B
TypeScript
|
|
import type { FN, Debounced } from './types.js';
|
||
|
|
declare const debounce: <Args extends unknown[]>(fn: FN<Args, unknown>, wait?: number, options?: {
|
||
|
|
leading?: boolean;
|
||
|
|
trailing?: boolean;
|
||
|
|
maxWait?: number;
|
||
|
|
}) => Debounced<Args>;
|
||
|
|
export default debounce;
|