From 2f427e172af825b217a0813fe3ee4f3b0eaf6f61 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 6 Mar 2018 21:28:54 +0800 Subject: [PATCH] Fix a ts error --- components/_util/throttleByAnimationFrame.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[]) => () => {