@empathyco/x-components
Version:
Empathy X Components
98 lines (44 loc) • 1.62 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [RecommendationsMutations](./x-components.recommendationsmutations.md)
## RecommendationsMutations interface
Recommendations store mutations.
**Signature:**
```typescript
export interface RecommendationsMutations extends StatusMutations, ConfigMutations<RecommendationsState>
```
**Extends:** [StatusMutations](./x-components.statusmutations.md)<!-- -->, [ConfigMutations](./x-components.configmutations.md)<!-- --><[RecommendationsState](./x-components.recommendationsstate.md)<!-- -->>
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[setParams](./x-components.recommendationsmutations.setparams.md)
</td><td>
</td><td>
(params: Dictionary<unknown>) => void
</td><td>
Sets the extra params of the module.
</td></tr>
<tr><td>
[setRecommendations](./x-components.recommendationsmutations.setrecommendations.md)
</td><td>
</td><td>
(recommendations: Result\[\]) => void
</td><td>
Sets the recommendations of the module.
</td></tr>
<tr><td>
[updateRecommendation](./x-components.recommendationsmutations.updaterecommendation.md)
</td><td>
</td><td>
(recommendation: Partial<Result> & Pick<Result, 'id'>) => void
</td><td>
Updates a recommendation with new fields.
</td></tr>
</tbody></table>