@empathyco/x-components
Version:
Empathy X Components
29 lines (17 loc) • 1.26 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [getStateAndGettersFromModule](./x-components.getstateandgettersfrommodule.md)
## getStateAndGettersFromModule() function
Returns an object with the getters and state of a module of store defined by the moduleName parameter.
**Signature:**
```typescript
export declare function getStateAndGettersFromModule<ModuleName extends XModuleName>(state: RootXStoreState, getters: Dictionary, moduleName: ModuleName): StoreModuleStateAndGetters<ModuleName>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| state | [RootXStoreState](./x-components.rootxstorestate.md) | The Vuex store State. |
| getters | Dictionary | The Vuex store Getters. |
| moduleName | ModuleName | The [XModuleName](./x-components.xmodulename.md) of the module. |
**Returns:**
[StoreModuleStateAndGetters](./x-components.storemodulestateandgetters.md)<!-- --><ModuleName>
The [StoreModuleStateAndGetters](./x-components.storemodulestateandgetters.md) with the Getters and the State of the [Store Module](./x-components.xstoremodule.md) defined by moduleName.