<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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)<!-- -->&lt;ModuleName&gt;

The [StoreModuleStateAndGetters](./x-components.storemodulestateandgetters.md) with the Getters and the State of the [Store Module](./x-components.xstoremodule.md) defined by moduleName.

