chore: fixing minor astro warnings

This commit is contained in:
2024-11-18 00:16:01 +01:00
parent b6ad4ebf4d
commit 33d7e654c5
4 changed files with 32 additions and 33 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
import { useEffect, useMemo, useState } from 'preact/hooks'
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