-
-
Notifications
You must be signed in to change notification settings - Fork 286
/
cdstub.js
37 lines (34 loc) · 991 Bytes
/
cdstub.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
36
37
/*
* @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
*/
/* eslint-disable no-unused-vars */
// MusicBrainz::Server::Entity::CDStub::TO_JSON
declare type CDStubT = $ReadOnly<{
...EntityRoleT<'cdstub'>,
+artist: string,
+barcode: string,
+comment?: string,
// null properties are not present in search indexes
+date_added: string | null,
+discid: string,
+last_modified: string | null,
+leadout_offset: number | null,
+lookup_count: number | null,
+modify_count: number | null,
+title: string,
+toc: string | null,
+track_count: number,
+track_offset: $ReadOnlyArray<number> | null,
+tracks: $ReadOnlyArray<CDStubTrackT>,
}>;
declare type CDStubTrackT = $ReadOnly<{
+artist: string,
+length: number,
+sequence: number,
+title: string,
}>;