<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ExtractState](./x-components.extractstate.md)

## ExtractState type

Util type for extracting the state type of a module.

**Signature:**

```typescript
export type ExtractState<Module extends XModuleName> = XModulesTree[Module] extends XModule<XStoreModule<infer State, any, any, any>> ? State : never;
```
**References:** [XModuleName](./x-components.xmodulename.md)<!-- -->, [XModulesTree](./x-components.xmodulestree.md)<!-- -->, [XModule](./x-components.xmodule.md)<!-- -->, [XStoreModule](./x-components.xstoremodule.md)

