Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchContent type contain playlists #8

Open
5ohdan opened this issue Dec 12, 2024 · 0 comments
Open

SearchContent type contain playlists #8

5ohdan opened this issue Dec 12, 2024 · 0 comments

Comments

@5ohdan
Copy link

5ohdan commented Dec 12, 2024

At the moment, the Spotify API’s SearchContent object includes tracks, artists, albums, playlists, shows, and episodes.

However, the spotify-types library only supports the following types:

export interface SearchContent {
    /** The episode search results. */
    episodes?: Paging<SimplifiedEpisode>;
    /** The show search results. */
    shows?: Paging<SimplifiedShow>;
    /** The track search results. */
    tracks?: Paging<Track>;
    /** The artist search results. */
    artists?: Paging<Artist>;
    /** The album search results. */
    albums?: Paging<SimplifiedAlbum>;
}

I believe the solution would be to add the following:

playlists?: Paging<SimplifiedPlaylist>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant