@kody/spotify
src/exports/skip.ts
13 lines · 440 B · TypeScriptimport { skip } from '../lib/spotify-api.ts'
import type { SkipParams } from '../lib/export-types.ts'
/**
* Skip to the next or previous Spotify track.
* `direction` is `next` (default) or `previous`. Supports `dryRun: true`.
* @example
* import skip from 'kody:@kody/spotify/skip'
* await skip({ direction: 'next', dryRun: true })
*/
export default async function spotifySkip(params: SkipParams = {}) {
return await skip(params)
}