Files
SnowLuma/.pnpm-store/v11/files/47/b30a52d532eeddfd37e331ea0ff66106bb0d2a43626367bf0f64e6b4f64d3a6ba5406eebd91825b23e49a4f40e04bd30c59f2afe89ad9c529e3ffb2c5a4a5b
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

10 lines
634 B
Plaintext

export type Procedure = (...args: any[]) => void;
/**
* @link https://davidwalsh.name/javascript-debounce-function
* @param func needs to implement a function which is debounced
* @param wait how long do you want to wait till the previous declared function is executed
* @param isImmediate defines if you want to execute the function on the first execution or the last execution inside the time window. `true` for first and `false` for last.
*/
declare const _default: <F extends Procedure>(func: F, wait: number, isImmediate?: boolean) => ((this: ThisParameterType<F>, ...args: Parameters<F>) => void);
export default _default;