@empathyco/x-components
Version:
Empathy X Components
28 lines (16 loc) • 899 B
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
| Parameter | Type | Description |
| --- | --- | --- |
| \_storeModule | Module | The store module that the emitters will be associated to. |
| emitters | Emitters | The [StoreEmitters](./x-components.storeemitters.md) to create. |
**Returns:**
Emitters
A type-safe function for storeEmitters.