tering-serieuze-types 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/interfaces/mopidy.ts +3 -1
- package/package.json +1 -1
package/interfaces/mopidy.ts
CHANGED
|
@@ -18,7 +18,7 @@ type Track = Omit<
|
|
|
18
18
|
| 'musicbrainz_id'
|
|
19
19
|
| 'artists'
|
|
20
20
|
| 'last_modified'
|
|
21
|
-
> & { album: Album; artists: Artist[] };
|
|
21
|
+
> & { album: Album; artists: Artist[]; isPlayable: boolean };
|
|
22
22
|
type TlTrack = Omit<Mopidy.models.TlTrack, 'track'> & { track: Track };
|
|
23
23
|
type Image = Mopidy.models.Image;
|
|
24
24
|
type Playlist = Omit<Mopidy.models.Playlist, 'tracks' | 'last_modified' | 'length'>;
|
|
@@ -40,6 +40,7 @@ type SearchResult = Omit<Mopidy.models.SearchResult, 'uri' | 'tracks' | 'albums'
|
|
|
40
40
|
export type { Track, TlTrack, Artist, Image, SearchResult, Album };
|
|
41
41
|
|
|
42
42
|
export type PlaybackState = 'playing' | 'paused' | 'stopped';
|
|
43
|
+
export type MopidyConnectionState = 'connected' | 'reconnecting' | 'offline';
|
|
43
44
|
|
|
44
45
|
export interface MopidyData {
|
|
45
46
|
tracklist: TlTrack[];
|
|
@@ -51,6 +52,7 @@ export interface MopidyData {
|
|
|
51
52
|
time: number;
|
|
52
53
|
isMuted: boolean;
|
|
53
54
|
favoriteArtistIds: string[];
|
|
55
|
+
connectionState: MopidyConnectionState;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|