@empathyco/x-components
Version:
Empathy X Components
26 lines (15 loc) • 601 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [setQuery](./x-components.setquery.md)
## setQuery() function
Sets the query of the module.
**Signature:**
```typescript
export declare function setQuery(state: QueryState, query: string): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| state | [QueryState](./x-components.querystate.md) | State of the module. |
| query | string | The new query to set. |
**Returns:**
void