mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-21 16:01:46 +01:00
Refactor debounce and tauri event listeners
This commit is contained in:
1 parent
15c22d98c6
commit
b0d8908724
11 files changed
+154
-137
No files matched your search
@@ -1,5 +1,5 @@
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function debounce(fn: (...args: any[]) => void, delay: number) {
|
||||
export function debounce(fn: (...args: any[]) => void, delay = 500) {
|
||||
let timer: ReturnType<typeof setTimeout>;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const result = function (...args: any[]) {
|
||||
|
||||
Reference in new issue
Block a user