Skip to content

Commit

Permalink
chore: make additional params optionsal in getTopItems helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
MellKam committed Feb 16, 2024
1 parent e567c86 commit 1a90a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions endpoints/user/user.endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const getUserTopItems = async <T extends UserTopItemType>(
*/
export const getUserTopArtists = async (
client: HTTPClient,
opts: GetUserTopItemsOpts,
opts?: GetUserTopItemsOpts,
) => {
return await getUserTopItems(client, "artists", opts);
};
Expand All @@ -85,7 +85,7 @@ export const getUserTopArtists = async (
*/
export const getUserTopTracks = async (
client: HTTPClient,
opts: GetUserTopItemsOpts,
opts?: GetUserTopItemsOpts,
) => {
return await getUserTopItems(client, "tracks", opts);
};
Expand Down

0 comments on commit 1a90a57

Please sign in to comment.