oxd/types/utils/debounce.d.ts

10 lines
380 B
TypeScript
Raw Normal View History

2023-05-02 09:36:43 +08:00
/**
* 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;