Skip to main content
Version: v2.10.3

SearchResult

Narrow on loadType before reading backend-specific properties. Empty and error load results expose tracks: []; transport errors can still reject the search promise.

Definition​

export type SearchResult =
| TrackSearchResult
| EpisodeSearchResult
| SearchSearchResult
| PlaylistSearchResult
| ErrorOrEmptySearchResult
| AlbumSearchResult
| ArtistSearchResult
| StationSearchResult
| PodcastSearchResult
| ShowSearchResult
| ShortSearchResult;