@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 638 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [SearchMutations](./x-components.searchmutations.md) > [setTotalResults](./x-components.searchmutations.settotalresults.md)
## SearchMutations.setTotalResults() method
Sets the total results of the module.
**Signature:**
```typescript
setTotalResults(totalResults: number): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| totalResults | number | The new total results to save to the state. |
**Returns:**
void