123456789101112131415161718192021222324 |
- type AnyFunction = (...arguments_: readonly any[]) => unknown;
- declare function debounce<F extends AnyFunction>(
- function_: F,
- wait?: number,
- options?: {immediate: boolean}
- ): debounce.DebouncedFunction<F>;
- declare namespace debounce {
- type DebouncedFunction<F extends AnyFunction> = {
- (...arguments_: Parameters<F>): ReturnType<F> | undefined;
- clear(): void;
- flush(): void;
- };
- }
- export = debounce;
|