Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/debounce.ts>DebounceOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface DebounceOptions
import { type DebounceOptions } from "https://deno.land/x/ayonli_jsext@v0.9.72/debounce.ts";

Options for the debounce function.

Properties

delay: number

The delay duration (in milliseconds) to wait before invoking the handler function.

optional
for: any

Use the debounce strategy for the given key, this will keep the debounce context in a global registry, binding new handler function for the same key will override the previous settings. This mechanism guarantees that both creating the debounced function in function scopes and overwriting the handler are possible.