amis-rpc-design/node_modules/antd/lib/_util/throttleByAnimationFrame.d.ts

7 lines
259 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
type throttledFn = (...args: any[]) => void;
type throttledCancelFn = {
cancel: () => void;
};
declare function throttleByAnimationFrame<T extends any[]>(fn: (...args: T) => void): throttledFn & throttledCancelFn;
export default throttleByAnimationFrame;