Skip to content

Commit ae6a7b7

Browse files
authored
chore: updates the types to include value inside of Genre (#10)
Adds value in genre when sending a request to getGenres. Possible JSON response: { "subsonic-response": { "status": "ok", "version": "1.16.1", "type": "navidrome", "serverVersion": "0.54.3 (734eb30a)", "openSubsonic": true, "genres": { "genre": [ { "value": "Rap", "songCount": 2065, "albumCount": 296 }, { "value": "Hip-Hop", "songCount": 1926, "albumCount": 276 } ] } } }
1 parent b7ced15 commit ae6a7b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export interface Error {
165165
}
166166

167167
export interface Genre {
168+
value: string;
168169
albumCount: number;
169170
songCount: number;
170171
}

0 commit comments

Comments
 (0)