@empathyco/x-components
Version:
Empathy X Components
57 lines (27 loc) • 1.29 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [namespacedDebounce](./x-components.namespaceddebounce.md)
## namespacedDebounce() function
Type safe debounce operator which creates a function which can only access the Module of the [Vuex](https://vuex.vuejs.org/) Store passed as parameter.
**Signature:**
```typescript
export declare function namespacedDebounce<ModuleName extends XModuleName>(moduleName: ModuleName): NamespacedTimeWireOperator<ModuleName>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
moduleName
</td><td>
ModuleName
</td><td>
The [XModuleName](./x-components.xmodulename.md) to create the operator wire.
</td></tr>
</tbody></table>
**Returns:**
[NamespacedTimeWireOperator](./x-components.namespacedtimewireoperator.md)<!-- --><ModuleName>
A function which creates a wire that uses the [debounce()](./x-components.debounce.md) wire operator to execute the `wire` after the time has passed without invoking it. This debounce time is given by the execution of the `timeRetrieving` function.