@empathyco/x-components
Version:
Empathy X Components
57 lines (26 loc) • 910 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
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[cancel](./x-components.debouncedfunction.cancel.md)
</td><td>
</td><td>
() => void
</td><td>
</td></tr>
</tbody></table>