We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb436e commit 457cd73Copy full SHA for 457cd73
src/backend/controllers/throttle.ts
@@ -5,7 +5,7 @@
5
* @returns A function that limits input function, `callback`, from being called more than once every `MIN_TIME_BETWEEN_UPDATE` milliseconds
6
*
7
*/
8
-export default function throttle<T extends (...args: Parameters<T>[]) => any>(
+export default function throttle<T extends (...args: any) => any>(
9
callback: T,
10
MIN_TIME_BETWEEN_UPDATE: number,
11
): (...arg: Parameters<T>) => ReturnType<T> {
0 commit comments