Show:
Methods
(inner) adaptApiResponse(config, query, restResponse, showDescription) → {SearchResponse}
...
Parameters:
| Name | Type | Description |
|---|---|---|
config |
MwMap | |
query |
string | |
restResponse |
RestResponse | |
showDescription |
boolean |
Returns:
- Type
- SearchResponse
(inner) nullish(a, b) → {any}
...
Nullish coalescing operator (??) helper
Parameters:
| Name | Type | Description |
|---|---|---|
a |
any | |
b |
any |
Returns:
- Type
- any
(inner) restSearchClient(config) → {SearchClient}
...
Type Definitions
AbortableSearchFetch
...
fetchByTitle(query, limitopt, showDescriptionopt) → {AbortableSearchFetch}
...
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
string | The search term. | |
limit |
number |
<optional> |
Maximum number of results. |
showDescription |
boolean |
<optional> |
Whether descriptions should be added to the results. |
Returns:
- Type
- AbortableSearchFetch
loadMore(query, offset, limitopt, showDescriptionopt) → {AbortableSearchFetch}
...
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
query |
string | The search term. | |
offset |
number | The number of search results that were already loaded. | |
limit |
number |
<optional> |
How many further search results to load (at most). |
showDescription |
boolean |
<optional> |
Whether descriptions should be added to the results. |
Returns:
- Type
- AbortableSearchFetch
SearchClient
...
Type:
- Object
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
fetchByTitle |
fetchByTitle | ||
loadMore |
loadMore |
<optional> |
SearchResponse
...