Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/spotify

src/exports/seek.ts

13 lines · 417 B · TypeScript
import { 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)
}