Fix types.

This commit is contained in:
Paul
2021-06-19 22:39:30 +01:00
parent 31d8950ea1
commit 014512440f
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
export function debounce(cb: Function, duration: number) {
// Store the timer variable.
let timer: number;
let timer: NodeJS.Timeout;
// This function is given to React.
return (...args: any[]) => {
// Get rid of the old timer.