cmd: updated prettier config and reformatted content

This commit is contained in:
2025-02-10 23:53:17 +01:00
parent f85991c409
commit 419b0c6ab5
20 changed files with 228 additions and 292 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'preact/hooks'
export const trottleDebounce = <T extends any[], R>(
fn: (...args: T) => R,
delay: number,
options: { leading?: boolean; trailing?: boolean } = {}
options: { leading?: boolean; trailing?: boolean } = {},
): ((...args: T) => R | undefined) => {
let lastCall = 0
let lastResult: R | undefined