fix: type error

pull/49/head
email 3 years ago
parent 02b37ef466
commit eae858e20b

@ -16,7 +16,7 @@ export default function useDebounce<T extends (...args: any[]) => any>(func: T,
} }
}, []); }, []);
const run = useCallback((...args) => { const run = useCallback((...args: any) => {
cancel(); cancel();
timer.current = window.setTimeout(() => { timer.current = window.setTimeout(() => {
func(...args); func(...args);

Loading…
Cancel
Save