Skip to content

Commit c40e8d0

Browse files
authored
Update getUserPlaylists() signature
Fixed JMPerez#181
1 parent 2ce3ee8 commit c40e8d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/typings/spotify-web-api.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,11 @@ declare namespace SpotifyWebApi {
461461
* @return {Object} Null if a callback is provided, a `Promise` object otherwise
462462
*/
463463
getUserPlaylists(
464-
userId?: string,
464+
userId: string,
465+
options?: Object,
466+
callback?: ResultsCallback<SpotifyApi.ListOfUsersPlaylistsResponse>
467+
): Promise<SpotifyApi.ListOfUsersPlaylistsResponse>;
468+
getUserPlaylists(
465469
options?: Object,
466470
callback?: ResultsCallback<SpotifyApi.ListOfUsersPlaylistsResponse>
467471
): Promise<SpotifyApi.ListOfUsersPlaylistsResponse>;

0 commit comments

Comments
 (0)