Skip to content

Commit

Permalink
fix suggestions type
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed Jul 2, 2023
1 parent 69eb28d commit bcbbdd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mixins/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface Playlist {
duration_seconds: number;
tracks: PlaylistItem[];
continuation: string | null;
suggestions: any;
suggestions: PlaylistItem[];
suggestions_continuation: string | null;
related: ParsedPlaylist[];
}
Expand All @@ -81,9 +81,9 @@ export interface PlaylistSuggestions {
export async function get_playlist_suggestions(
playlistId: string,
continuation: string,
options: Omit<PaginationOptions, "continuation">,
options: Omit<PaginationOptions, "continuation"> = {},
): Promise<PlaylistSuggestions> {
const { signal, limit = 20 } = options;
const { signal, limit = 6 } = options;

const browseId = playlistId.startsWith("VL") ? playlistId : `VL${playlistId}`;
const data = { browseId };
Expand Down

0 comments on commit bcbbdd6

Please sign in to comment.