@empathyco/x-components
Version:
Empathy X Components
21 lines (14 loc) • 1.09 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [XStoreModuleOptions](./x-components.xstoremoduleoptions.md)
## XStoreModuleOptions type
Options for overriding a default [XStoreModule](./x-components.xstoremodule.md)<!-- -->.
**Signature:**
```typescript
export type XStoreModuleOptions<StoreModule extends AnyXStoreModule> = StoreModule extends XStoreModule<infer State, infer Getters, infer Mutations, infer Actions> ? {
state?: DeepPartial<State>;
actions?: DeepPartial<ActionsTree<State, Getters, Mutations, Actions>>;
getters?: DeepPartial<GettersTree<State, Getters>>;
mutations?: DeepPartial<MutationsTree<State, Mutations>>;
} : never;
```
**References:** [AnyXStoreModule](./x-components.anyxstoremodule.md)<!-- -->, [XStoreModule](./x-components.xstoremodule.md)<!-- -->, [ActionsTree](./x-components.actionstree.md)<!-- -->, [GettersTree](./x-components.getterstree.md)<!-- -->, [MutationsTree](./x-components.mutationstree.md)