forked from metabrainz/musicbrainz-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartwork.js
35 lines (32 loc) · 920 Bytes
/
artwork.js
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
/*
* @flow strict
* Copyright (C) 2017 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
// MusicBrainz::Server::Entity::Artwork::TO_JSON
declare type ArtworkT = {
...EditableRoleT,
+comment: string,
+filename: string | null,
+huge_ia_thumbnail: string,
+huge_thumbnail: string,
+id: number,
+image: string | null,
+large_ia_thumbnail: string,
+large_thumbnail: string,
+mime_type: string,
+release?: ReleaseT,
+small_ia_thumbnail: string,
+small_thumbnail: string,
+suffix: string,
+types: $ReadOnlyArray<string>,
};
// MusicBrainz::Server::Entity::CommonsImage::TO_JSON
declare type CommonsImageT = {
+page_url: string,
+thumb_url: string,
};
declare type CoverArtTypeT = OptionTreeT<'cover_art_type'>;