diff --git a/components/_util/throttleByAnimationFrame.tsx b/components/_util/throttleByAnimationFrame.tsx index 213b213d5d..a1c9279ca1 100644 --- a/components/_util/throttleByAnimationFrame.tsx +++ b/components/_util/throttleByAnimationFrame.tsx @@ -2,7 +2,7 @@ import getRequestAnimationFrame, { cancelRequestAnimationFrame } from '../_util/ const reqAnimFrame = getRequestAnimationFrame(); -export default function throttleByAnimationFrame(fn: () => void) { +export default function throttleByAnimationFrame(fn: (...args: any[]) => void) { let requestId: number | null; const later = (args: any[]) => () => {