10 lines
380 B
TypeScript
10 lines
380 B
TypeScript
|
/**
|
||
|
* A function that emits a side effect and does not return anything.
|
||
|
* https://github.com/chodorowicz/ts-debounce/blob/master/src/index.ts
|
||
|
*/
|
||
|
export declare type Procedure = (...args: any[]) => void;
|
||
|
export declare type Options = {
|
||
|
isImmediate: boolean;
|
||
|
};
|
||
|
export default function debounce<F extends Procedure>(func: F, waitMilliseconds?: number, options?: Options): F;
|