forked from phc/website
cmd: updated prettier config and reformatted content
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user