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