Skip to content

Commit ba474cd

Browse files
committed
updated node to version 18.12.1 and fixed throttle ts error
1 parent 1782e24 commit ba474cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
"intro.js-react": "^1.0.0",
176176
"jsondiffpatch": "^0.6.0",
177177
"lodash": "^4.17.21",
178-
"node": "^14.21.3",
178+
"node": "^18.12.1",
179179
"rc-slider": "^10.5.0",
180180
"rc-tooltip": "^6.1.3",
181181
"react": "^18.2.0",

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: any) => 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)