mirror of
https://github.com/usememos/memos.git
synced 2025-02-20 21:30:55 +01:00
fix: type error
This commit is contained in:
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…
x
Reference in New Issue
Block a user