From eae858e20b224af0e7f652d83252483b6b880a00 Mon Sep 17 00:00:00 2001 From: email Date: Fri, 15 Apr 2022 09:27:38 +0800 Subject: [PATCH] fix: type error --- web/src/hooks/useDebounce.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/hooks/useDebounce.ts b/web/src/hooks/useDebounce.ts index 7d841820..349c1c87 100644 --- a/web/src/hooks/useDebounce.ts +++ b/web/src/hooks/useDebounce.ts @@ -16,7 +16,7 @@ export default function useDebounce any>(func: T, } }, []); - const run = useCallback((...args) => { + const run = useCallback((...args: any) => { cancel(); timer.current = window.setTimeout(() => { func(...args);