UNPKG

@empathyco/x-components

Version:
27 lines (15 loc) 750 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [QuerySuggestionsActions](./x-components.querysuggestionsactions.md) &gt; [fetchSuggestions](./x-components.querysuggestionsactions.fetchsuggestions.md) ## QuerySuggestionsActions.fetchSuggestions() method Requests and returns a list of suggestions based on the module state. **Signature:** ```typescript fetchSuggestions(request: QuerySuggestionsRequest | null): Suggestion[]; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | request | QuerySuggestionsRequest \| null | | **Returns:** Suggestion\[\] A new list of suggestions.