UNPKG

rcx-virtual-list

Version:

Maximum performance for extremely large lists.<br/> Flexible, and actively maintained React library that excels with high-performance, feature-rich virtualized lists—including grouping, sticky headers, snapping, animations, and both scroll directions. Wh

27 lines (26 loc) • 748 B
/** * Simple debounce function. * @link https://github.com/DjonnyX/rcx-virtual-list/tree/main/src/lib/src/utils/debounce.ts * @author Evgenii Grebennikov * @email djonnyx@gmail.com */ export declare const debounce: (cb: (...args: Array<any>) => void, debounceTime?: number) => { /** * Call handling method */ execute: (...args: Array<any>) => void; /** * Method of destroying handlers */ dispose: () => void; }; export declare const useDebounce: (cb: (...args: Array<any>) => void, debounceTime?: number) => { /** * Call handling method */ execute: (...args: Array<any>) => void; /** * Method of destroying handlers */ dispose: () => void; };