@empathyco/x-components
Version:
Empathy X Components
21 lines (12 loc) • 757 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [DebouncedFunction](./x-components.debouncedfunction.md)
## DebouncedFunction interface
The type returned by the [debounce()](./x-components.debounce.md) function. Basically is the function the [debounce()](./x-components.debounce.md) receives but debounced and with a method `cancel()` to cancel pending timeouts.
**Signature:**
```typescript
export interface DebouncedFunction<Params extends any[]>
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [cancel](./x-components.debouncedfunction.cancel.md) | | () => void | |