@polgubau/utils
Version:
A collection of utility functions for TypeScript
11 lines (9 loc) • 357 B
text/typescript
/**
* Creates a debounced function that delays invoking the provided function until after the specified delay.
*
* @param fn - The function to debounce.
* @param delay - The number of milliseconds to delay.
* @returns A new debounced function.
*/
declare function debounce(fn: Function, delay: number): (...args: any[]) => void;
export { debounce };