forked from phc/website
chore: fixing minor astro warnings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user