Skip to main content

DebounceOptions

@webda/utils


Interface: DebounceOptions

Defined in: packages/utils/src/debounce.ts:4

Options for debounce behavior

Properties​

leading?​

optional leading?: boolean

Defined in: packages/utils/src/debounce.ts:9

If true, invoke the function on the leading edge of the timeout

Default​

false

maxWait?​

optional maxWait?: number

Defined in: packages/utils/src/debounce.ts:21

Maximum time the function is allowed to be delayed before it's invoked

Default​

undefined (no maximum)

trailing?​

optional trailing?: boolean

Defined in: packages/utils/src/debounce.ts:15

If true, invoke the function on the trailing edge of the timeout

Default​

true