UNPKG

@empathyco/x-components

Version:
73 lines (35 loc) 925 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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 <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> state </td><td> T </td><td> The [state](https://vuex.vuejs.org/guide/state.html) provided by Vuex. </td></tr> <tr><td> config </td><td> Partial&lt;T\['config'\]&gt; </td><td> The config to be merged. </td></tr> </tbody></table> **Returns:** void