@empathyco/x-components
Version:
Empathy X Components
73 lines (35 loc) • 867 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [setConfig](./x-components.setconfig.md)
## setConfig() function
Sets the request config. Can be used as a mutation.
**Signature:**
```typescript
export declare function setConfig<T extends {
config: T['config'];
}>(state: T, config: 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>
T\['config'\]
</td><td>
The new config.
</td></tr>
</tbody></table>
**Returns:**
void