dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
10 lines (9 loc) • 456 B
TypeScript
/**
* Creates a debounced function that delays invoking func until after wait milliseconds
* have elapsed since the last time the debounced function was invoked.
*
* @param func - The function to debounce
* @param wait - The number of milliseconds to delay (default: 300)
* @returns A debounced version of the function
*/
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): (...args: Parameters<T>) => void;