forked from abner/for-legacy-web
Fix types.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user