5 lines
160 B
TypeScript
5 lines
160 B
TypeScript
|
export interface Cancelable {
|
||
|
clear(): void;
|
||
|
}
|
||
|
export default function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): T & Cancelable;
|