Refactor debounce and tauri event listeners

This commit is contained in:
Gregory Schier committed 2023-04-01 21:39:46 -07:00
1 parent 15c22d98c6
commit b0d8908724
11 files changed
+154 -137

No files matched your search

+1 -1
View File
@@ -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[]) {