- debounce<Args, Result>(fn, timeout?, edge?): ((...args) => Result)
Type Parameters
Args extends unknown[]
Result
Parameters
fn: ((...args) => Result)
Optional
timeout: number
Optional
edge: "leading" | "both"
Returns ((...args) => Result)
- debounce<Args, Result>(fn, timeout?, edge?): ((...args) => Result)
Type Parameters
Args extends unknown[]
Result
Parameters
fn: ((...args) => Result)
Optional
timeout: number
Optional
edge: "trailing"
Returns ((...args) => Result)
- debounce<Args, Result>(fn, timeout?, edge?): ((...args) => Promise<Result>)
Type Parameters
Args extends unknown[]
Result
Parameters
fn: ((...args) => Result)
Optional
timeout: number
Optional
edge: "trailingPromise"
Returns ((...args) => Promise<Result>)