From c40e8d0484d1dcf5c664b98d70726cb121b67f64 Mon Sep 17 00:00:00 2001 From: Filip Lindqvist Date: Tue, 15 Feb 2022 22:11:40 +0100 Subject: [PATCH] Update getUserPlaylists() signature Fixed #181 --- src/typings/spotify-web-api.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/typings/spotify-web-api.d.ts b/src/typings/spotify-web-api.d.ts index f2ce3a0..fe99ce0 100644 --- a/src/typings/spotify-web-api.d.ts +++ b/src/typings/spotify-web-api.d.ts @@ -461,7 +461,11 @@ declare namespace SpotifyWebApi { * @return {Object} Null if a callback is provided, a `Promise` object otherwise */ getUserPlaylists( - userId?: string, + userId: string, + options?: Object, + callback?: ResultsCallback + ): Promise; + getUserPlaylists( options?: Object, callback?: ResultsCallback ): Promise;