@empathyco/x-components
Version:
Empathy X Components
73 lines (34 loc) • 1.09 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [createStoreEmitters](./x-components.createstoreemitters.md)
## createStoreEmitters() function
Helper function for creating type-safe [StoreEmitters](./x-components.storeemitters.md)<!-- -->.
**Signature:**
```typescript
export declare function createStoreEmitters<Module extends AnyXStoreModule, Emitters extends StoreEmitters<Module>>(_storeModule: Module, emitters: Emitters): Emitters;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
\_storeModule
</td><td>
Module
</td><td>
The store module that the emitters will be associated to.
</td></tr>
<tr><td>
emitters
</td><td>
Emitters
</td><td>
The [StoreEmitters](./x-components.storeemitters.md) to create.
</td></tr>
</tbody></table>
**Returns:**
Emitters
A type-safe function for storeEmitters.