Skip to content

Commit 457cd73

Browse files
authored
Update throttle.ts
Reverted change to ensure compatibility
1 parent ffb436e commit 457cd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/controllers/throttle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @returns A function that limits input function, `callback`, from being called more than once every `MIN_TIME_BETWEEN_UPDATE` milliseconds
66
*
77
*/
8-
export default function throttle<T extends (...args: Parameters<T>[]) => any>(
8+
export default function throttle<T extends (...args: any) => any>(
99
callback: T,
1010
MIN_TIME_BETWEEN_UPDATE: number,
1111
): (...arg: Parameters<T>) => ReturnType<T> {

0 commit comments

Comments
 (0)