Browse Source

Fix a ts error

pull/9564/head
afc163 7 years ago
parent
commit
2f427e172a
  1. 2
      components/_util/throttleByAnimationFrame.tsx

2
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[]) => () => {

Loading…
Cancel
Save