@plurid/plurid-functions
Version:
General Utility Functions for Plurid Applications
9 lines (8 loc) • 366 B
TypeScript
export declare const debounce: (func: any, wait: any, immediate?: boolean) => (this: any) => void;
/**
* Source: https://stackoverflow.com/a/57335271
*
* @param callback Function to be called.
* @param wait Debounce time.
*/
export declare function debouncedCallback<A extends any[]>(callback: (...args: A) => void, wait: number): (...args: A) => void;