Files
copilot-toolbox-sdfdsfds/node_modules/@ant-design/pro-utils/lib/hooks/useDebounceFn/index.d.ts
2026-01-16 01:51:36 +00:00

10 lines
356 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 一个去抖的 hook传入一个 function返回一个去抖后的 function
* @param {(...args:T) => Promise<any>} fn
* @param {number} wait?
*/
export declare function useDebounceFn<T extends any[], U = any>(fn: (...args: T) => Promise<any>, wait?: number): {
run: (...args: any) => Promise<U | undefined>;
cancel: () => void;
};