Skip to content

Commit 62fbe45

Browse files
authored
Added the optional "@attr" with the "user.getRecentTracks" response method for current song playing (#29)
the api returns an optional "@attr" with the "user.getRecentTracks" method if the user is currently playing a song
1 parent e18518d commit 62fbe45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,9 @@ export type LastFMUserGetRecentTracksResponse = Readonly<{
12441244
uts: string;
12451245
'#text': string;
12461246
};
1247+
'@attr'?: {
1248+
nowplaying: "true"
1249+
};
12471250
}>;
12481251
'@attr': {
12491252
user: string;

0 commit comments

Comments
 (0)