Skip to content

Commit

Permalink
updated timeout type to support both node and browser use
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhaufe committed Oct 28, 2024
1 parent cb6693d commit 3287430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/debounce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* after the delay has passed without any other calls to the function.
*/
export default function (func: Function, delay: number) {
let timeoutId: number;
let timeoutId: any
return function (...args: any[]) {
if (timeoutId)
clearTimeout(timeoutId);
Expand Down

0 comments on commit 3287430

Please sign in to comment.