mirror of
https://github.com/usememos/memos.git
synced 2025-02-15 10:50:47 +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();
|
||||
timer.current = window.setTimeout(() => {
|
||||
func(...args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user