tering-serieuze-types 2.14.3 → 3.0.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 +13 -15
- package/package.json +1 -1
package/interfaces/mopidy.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type Mopidy = require('mopidy');
|
|
2
|
-
import { type URLTrack } from './webamp';
|
|
3
2
|
|
|
4
3
|
type Track = Mopidy.models.Track;
|
|
5
4
|
type TlTrack = Mopidy.models.TlTrack;
|
|
@@ -9,24 +8,23 @@ type SearchResult = Mopidy.models.SearchResult;
|
|
|
9
8
|
|
|
10
9
|
export type { Track, TlTrack, Artist, Image, SearchResult };
|
|
11
10
|
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
export type PlaybackState = 'playing' | 'paused' | 'stopped';
|
|
12
|
+
|
|
13
|
+
export type HasImage = { image: Image | undefined };
|
|
14
|
+
export type TlTrackWithImage = TlTrack & HasImage;
|
|
15
|
+
export type AlarmschijfTrack = Track & HasImage;
|
|
17
16
|
|
|
18
17
|
export interface MopidyData {
|
|
19
|
-
tracklist:
|
|
20
|
-
volume
|
|
21
|
-
playRandom
|
|
22
|
-
repeat
|
|
23
|
-
track
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
tracklist: TlTrack[];
|
|
19
|
+
volume: number;
|
|
20
|
+
playRandom: boolean;
|
|
21
|
+
repeat: boolean;
|
|
22
|
+
track: TlTrackWithImage;
|
|
23
|
+
playbackState: PlaybackState;
|
|
24
|
+
time: number;
|
|
25
|
+
isMuted: boolean;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export type AlarmschijfTrack = Track & { image: Image | undefined };
|
|
29
|
-
|
|
30
28
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
29
|
export type AlarmschijfResult = {
|
|
32
30
|
playlist: Track[];
|