Something went wrong. Try again.
version 2 of my website
Something went wrong. Try again.
675 B · 47 lines
TypeScript
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
export type RecentTracks = { recenttracks: { track: Track[]; }; "@attr": { user: string; totalPages: number; page: number; perPage: number; total: number; }}
export type Track = { artist: Artist; streamable: number; mbid: string; name: string; url: string; image: LastFMImage[]; date?: { uts: string; "#text": string; }; "@attr"?: { nowplaying: boolean; }};
export type TrackResponse = { name: string; artist: string; url: string; image: string; nowplaying: boolean;}
export type Artist = { mbid: string; "#text": string;}
export type LastFMImage = { size: string; "#text": string;}