UNPKG

@yeger/debounce

Version:

A tiny TypeScript library for debouncing functions.

11 lines 416 B
//#region src/index.d.ts /** * Debounce a callback with an optional delay. * @param cb - The callback that will be invoked. * @param delay - A delay after which the callback will be invoked. * @returns The debounced callback. */ declare function debounce<Args extends any[]>(cb: (...args: Args) => void, delay?: number): (...args: Args) => void; //#endregion export { debounce }; //# sourceMappingURL=index.d.mts.map