@empathyco/x-components
Version:
Empathy X Components
28 lines (17 loc) • 677 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [setConfig](./x-components.setconfig.md)
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;
```
| Parameter | Type | Description |
| --- | --- | --- |
| state | T | The [state](https://vuex.vuejs.org/guide/state.html) provided by Vuex. |
| config | T\['config'\] | The new config. |
**Returns:**
void