From 328743058c68876d6aad83892c486e38b4b5e18b Mon Sep 17 00:00:00 2001 From: Michael Haufe Date: Mon, 28 Oct 2024 20:20:27 +0000 Subject: [PATCH] updated timeout type to support both node and browser use --- utils/debounce.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/debounce.ts b/utils/debounce.ts index 3f5fb361..1c61d4d5 100644 --- a/utils/debounce.ts +++ b/utils/debounce.ts @@ -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);