@@ -1151,7 +1151,7 @@ SpotifyWebApi.prototype = {
1151
1151
* @returns {Promise|undefined } A promise that if successful, resolves into an empty response,
1152
1152
* otherwise an error. Not returned if a callback is given.
1153
1153
*/
1154
- skipToPrevious : function ( callback ) {
1154
+ skipToPrevious : function ( options , callback ) {
1155
1155
return WebApiRequest . builder ( this . getAccessToken ( ) )
1156
1156
. withPath ( '/v1/me/player/previous' )
1157
1157
. withQueryParameters (
@@ -1170,7 +1170,7 @@ SpotifyWebApi.prototype = {
1170
1170
* @returns {Promise|undefined } A promise that if successful, resolves into an empty response,
1171
1171
* otherwise an error. Not returned if a callback is given.
1172
1172
*/
1173
- skipToNext : function ( callback ) {
1173
+ skipToNext : function ( options , callback ) {
1174
1174
return WebApiRequest . builder ( this . getAccessToken ( ) )
1175
1175
. withPath ( '/v1/me/player/next' )
1176
1176
. withQueryParameters (
@@ -1211,7 +1211,7 @@ SpotifyWebApi.prototype = {
1211
1211
* @param {string } [state] State (track, context, or off)
1212
1212
* @param {Object } [options] Options, being device_id. If left empty will target the user's currently active device.
1213
1213
* @param {requestCallback } [callback] Optional callback method to be called instead of the promise.
1214
- * @example setRepeat({state: 'context'}).then(...)
1214
+ * @example setRepeat('context', { }).then(...)
1215
1215
* @returns {Promise|undefined } A promise that if successful, resolves into an empty response,
1216
1216
* otherwise an error. Not returned if a callback is given.
1217
1217
*/
@@ -1232,7 +1232,7 @@ SpotifyWebApi.prototype = {
1232
1232
1233
1233
/**
1234
1234
* Set Shuffle Mode On The Current User's Playback
1235
- * @param {string } [state] State (true, false)
1235
+ * @param {boolean } [state] State
1236
1236
* @param {Object } [options] Options, being device_id. If left empty will target the user's currently active device.
1237
1237
* @param {requestCallback } [callback] Optional callback method to be called instead of the promise.
1238
1238
* @example setShuffle({state: 'false'}).then(...)
0 commit comments