diff --git a/async/debounce.ts b/async/debounce.ts index 7e9fef2fe..6df1a84bb 100644 --- a/async/debounce.ts +++ b/async/debounce.ts @@ -58,7 +58,7 @@ export function debounce>( debounced.clear(); fn.call(debounced, ...args); }; - timeout = setTimeout(flush, wait); + timeout = Number(setTimeout(flush, wait)); }) as DebouncedFunction; debounced.clear = () => {