evilSpins v1
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
// types.ts
|
||||
export type BoxType = 'playlist' | 'compilation' | 'userPlaylist'
|
||||
|
||||
export interface Box {
|
||||
id: string
|
||||
type: 'playlist' | 'compilation'
|
||||
type: BoxType
|
||||
name: string
|
||||
duration: number
|
||||
tracks?: Track[]
|
||||
@@ -10,6 +12,9 @@ export interface Box {
|
||||
color1: string
|
||||
color3: string
|
||||
state: BoxState
|
||||
// Pour les userPlaylist, on peut ajouter des métadonnées spécifiques
|
||||
ownerId?: string
|
||||
isPublic?: boolean
|
||||
}
|
||||
|
||||
export interface Artist {
|
||||
@@ -25,12 +30,13 @@ export interface Track {
|
||||
title: string
|
||||
artist?: Artist | number | string
|
||||
start?: number
|
||||
duration?: number
|
||||
url: string
|
||||
coverId?: string
|
||||
date?: Date
|
||||
card?: { suit: CardSuit; rank: CardRank }
|
||||
link?: string
|
||||
type: 'playlist' | 'compilation'
|
||||
type: BoxType
|
||||
}
|
||||
|
||||
export interface Playlist {
|
||||
|
||||
Reference in New Issue
Block a user