Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SearchResult<A>

Common properties of a search result.

Type parameters

Hierarchy

Index

Properties

actions

actions: A[]

Actions that can be performed with this search result. Used when dispatching search results back to the respective provider.

Optional data

data?: any

Additional custom metadata about the search result. Can be used when actioning the search result.

Optional description

description?: string

Unused.

experimental

Optional icon

icon?: string

An optional icon that can be used when displaying the search result in a UI.

key

key: string

A unique ID for the search result. Can be used to update a previously returned search result by calling searchRequestContext.respond(result) with the same search result key.

Optional label

label?: string

A label to render with the search result.

Optional score

score?: number

Used when sorting a list of search results for a single provider.

experimental

Optional shortDescription

shortDescription?: string

Unused.

experimental

Optional tags

tags?: SearchTag[]

Tags associated with the search result.

title

title: string

UI friendly name for the search result.

Generated using TypeDoc