We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04f3e0d commit fc9b52eCopy full SHA for fc9b52e
components/_util/raf.ts
@@ -1,4 +1,4 @@
1
-let raf = (callback: FrameRequestCallback) => +setTimeout(callback, 16);
+let raf = (callback: FrameRequestCallback) => setTimeout(callback, 16) as any;
2
let caf = (num: number) => clearTimeout(num);
3
4
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
0 commit comments