SearchSelector
Index
Methods
Methods
entries
Returns a StarlightListResponse with a list of Entries. By default, entries from all models are returned, but filtering by model can be configured.
Type parameters
- T: SerializedData = Record<string, unknown>
Parameters
optionalparams: SearchEntriesParams
An optional object of request parameters. See SearchEntriesParams for all available parameters.
optionaloptions: RequestInit
An optional object of fetch options. See https://developer.mozilla.org/en-US/docs/Web/API/RequestInit for more info.
Returns Promise<StarlightListResponse<Entry<T>>>
A Selector that provide methods to search for content. Only entry search is supported for the time being.
You can use a SearchSelector by accessing StarlightClient.search.