9 lines
165 B
TypeScript
Raw Permalink Normal View History

2024-10-15 23:05:53 +03:00
export interface Cancelable {
clear(): void;
}
export default function debounce<T extends (...args: any[]) => any>(
func: T,
wait?: number
): T & Cancelable;