tering-serieuze-types 3.1.1 → 3.2.1

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,17 +1,28 @@
1
1
  import type Mopidy = require('mopidy');
2
2
 
3
- type Track = Mopidy.models.Track;
4
- type TlTrack = Mopidy.models.TlTrack;
5
- type Artist = Mopidy.models.Artist;
3
+ type Artist = Omit<Mopidy.models.Artist, 'musicbrainz_id'>;
4
+ type Album = Omit<Mopidy.models.Album, 'artists' | 'num_discs' | 'musicbrainz_id'> & {
5
+ artists: Artist[];
6
+ };
7
+ type Track = Omit<
8
+ Mopidy.models.Track,
9
+ 'album' | 'genre' | 'track_no' | 'disc_no' | 'bitrate' | 'comment' | 'musicbrainz_id' | 'artists'
10
+ > & { album: Album; artists: Artist[] };
11
+ type TlTrack = Omit<Mopidy.models.TlTrack, 'track'> & { track: Track };
6
12
  type Image = Mopidy.models.Image;
7
- type SearchResult = Mopidy.models.SearchResult;
13
+ type SearchResult = Omit<Mopidy.models.SearchResult, 'tracks' | 'albums' | 'artists'> & {
14
+ tracks: Track[];
15
+ albums: Album[];
16
+ artists: Artist[];
17
+ };
8
18
 
9
- export type { Track, TlTrack, Artist, Image, SearchResult };
19
+ export type { Track, TlTrack, Artist, Image, SearchResult, Album };
10
20
 
11
21
  export type PlaybackState = 'playing' | 'paused' | 'stopped';
12
22
 
13
23
  export type HasImage = { image: Image | undefined };
14
24
  export type TlTrackWithImage = TlTrack & HasImage;
25
+ export type AlbumWithImage = Album & HasImage;
15
26
  export type AlarmschijfTrack = Track & HasImage;
16
27
 
17
28
  export interface MopidyData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tering-serieuze-types",
3
- "version": "3.1.1",
3
+ "version": "3.2.1",
4
4
  "description": "Tering serieuze types",
5
5
  "author": "Frank",
6
6
  "repository": {