Files
evilspins/types/types.ts
valere e2c5693948
All checks were successful
Deploy App / build (push) Successful in 4m19s
Deploy App / deploy (push) Successful in 16s
playlists support v1
2025-10-09 22:47:30 +02:00

44 lines
843 B
TypeScript

// types.ts
export interface Compilation {
id: string
name: string
duration: number
tracks?: Track[]
description: string
color2: string
color1: string
color3: string
}
export interface Artist {
id: number
name: string
url: string
coverId: string
}
export interface Track {
id: number
order?: number
compilationId: string
title: string
artist?: Artist | { id?: Artist }
start?: number
url: string
coverId?: string
date?: Date
card?: { suit: CardSuit; value: CardRank }
link?: string
}
export interface Playlist {
id: number
date: Date
title: string
url: string
filename: string
}
export type BoxState = 'hide' | 'list' | 'selected'
export type CardSuit = '♠' | '♣' | '♦' | '♥'
export type CardRank = 'A' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | 'J' | 'Q' | 'K'