mirror of
https://github.com/usememos/memos.git
synced 2025-11-17 14:41:04 +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();
|
cancel();
|
||||||
timer.current = window.setTimeout(() => {
|
timer.current = window.setTimeout(() => {
|
||||||
func(...args);
|
func(...args);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue