@kody/spotify
src/exports/seek.ts
13 lines · 417 B · TypeScriptimport { seek } from '../lib/spotify-api.ts'
import type { SeekParams } from '../lib/export-types.ts'
/**
* Seek to a position in the currently playing Spotify track.
* Supports `dryRun: true`.
* @example
* import spotifySeek from 'kody:@kody/spotify/seek'
* await spotifySeek({ positionMs: 30000, dryRun: true })
*/
export default async function spotifySeek(params: SeekParams) {
return await seek(params)
}