<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [SearchMutations](./x-components.searchmutations.md) &gt; [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

