SearchResult
Overview
| Properties | Type | Description |
|---|---|---|
loadType | LoadType | The load type of the result. |
tracks | Track[] | If load type is track or search, return array of tracks. |
playlist | PlaylistData | If load type is playlist, the resulting playlist data. |
LoadType
Value:
trackplaylistsearchemptyerror
PlaylistData
| Properties | Type | Description |
|---|---|---|
name | string | The playlist name. |
duration | number | The length of the playlist. |
tracks | Track[] | An array of tracks from the playlist. |