<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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.

