mirror of
https://github.com/usememos/memos.git
synced 2025-01-31 17:48:12 +08:00
fix: type error
This commit is contained in:
parent
02b37ef466
commit
eae858e20b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
timer.current = window.setTimeout(() => {
|
||||
func(...args);
|
||||
|
|
Loading…
Reference in a new issue