@empathyco/x-components
Version:
Empathy X Components
28 lines (17 loc) • 735 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [mergeConfig](./x-components.mergeconfig.md)
## mergeConfig() function
Merges a new config with the current one. Can be used as a mutation.
**Signature:**
```typescript
export declare function mergeConfig<T extends {
config: T['config'];
}>(state: T, config: Partial<T['config']>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| state | T | The [state](https://vuex.vuejs.org/guide/state.html) provided by Vuex. |
| config | Partial<T\['config'\]> | The config to be merged. |
**Returns:**
void