initiation librodrome
This commit is contained in:
18
app/types/player.ts
Normal file
18
app/types/player.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { Song } from './song'
|
||||
|
||||
export type PlayerMode = 'guided' | 'free'
|
||||
export type RepeatMode = 'none' | 'one' | 'all'
|
||||
|
||||
export interface PlayerState {
|
||||
isPlaying: boolean
|
||||
currentSong: Song | null
|
||||
currentTime: number
|
||||
duration: number
|
||||
volume: number
|
||||
mode: PlayerMode
|
||||
repeatMode: RepeatMode
|
||||
isShuffled: boolean
|
||||
playlist: Song[]
|
||||
queue: Song[]
|
||||
isExpanded: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user