My personal site hosted @ https://indexx.dev
1interface LastFmImage {
2 size: "small" | "medium" | "large" | "extralarge";
3 "#text": string;
4}
5
6interface LastFmArtist {
7 mbid: string;
8 "#text": string;
9}
10
11interface LastFmAlbum {
12 mbid: string;
13 "#text": string;
14}
15
16interface LastFmDate {
17 uts: string;
18 "#text": string;
19}
20
21interface LastFmTrackAttr {
22 nowplaying?: boolean;
23}
24
25interface LastFmTrack {
26 artist: LastFmArtist;
27 streamable: boolean;
28 image: LastFmImage[];
29 mbid: string;
30 album: LastFmAlbum;
31 name: string;
32 url: string;
33 date: LastFmDate;
34 "@attr"?: LastFmTrackAttr;
35}
36
37interface LastFmRecentTracksAttr {
38 user: string;
39 totalPages: string;
40 page: string;
41 perPage: string;
42 total: string;
43}
44
45interface LastFmRecentTracks {
46 track: LastFmTrack[];
47 "@attr": LastFmRecentTracksAttr;
48}
49
50interface LastFmApiResponse {
51 recenttracks: LastFmRecentTracks;
52}