-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
54 lines (47 loc) · 960 Bytes
/
Copy pathtypes.ts
File metadata and controls
54 lines (47 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export interface BrowserFolderRecord {
id: string;
name: string;
handle: FileSystemDirectoryHandle;
}
export interface ElectronFolderRecord {
id: string;
name: string;
electronId: string;
}
export type FolderRecord = BrowserFolderRecord | ElectronFolderRecord;
export interface TrackMeta {
id: string;
folderId: string;
relPath: string[];
fileName: string;
sizeBytes: number;
title: string;
artist: string;
album: string;
albumArtist?: string;
duration: number;
trackNo?: number;
year?: number;
genre?: string;
hasTitleTag: boolean;
hasArtistTag: boolean;
hasAlbumTag: boolean;
hasCoverArt: boolean;
}
export interface LyricLine {
time: number | null;
text: string;
}
export interface Lyrics {
synced: boolean;
source: 'lrclib' | 'file';
lines: LyricLine[];
}
export interface StoredLyrics {
trackId: string;
lyrics: Lyrics;
}
export interface QueueItem {
key: string;
track: TrackMeta;
}