From 1a90a578b64643218447ad5acda72af5aa608e84 Mon Sep 17 00:00:00 2001 From: Artem Melnyk Date: Fri, 16 Feb 2024 22:00:19 +0100 Subject: [PATCH] chore: make additional params optionsal in getTopItems helpers --- endpoints/user/user.endpoints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/user/user.endpoints.ts b/endpoints/user/user.endpoints.ts index 8526896..c3c78b9 100644 --- a/endpoints/user/user.endpoints.ts +++ b/endpoints/user/user.endpoints.ts @@ -70,7 +70,7 @@ export const getUserTopItems = async ( */ export const getUserTopArtists = async ( client: HTTPClient, - opts: GetUserTopItemsOpts, + opts?: GetUserTopItemsOpts, ) => { return await getUserTopItems(client, "artists", opts); }; @@ -85,7 +85,7 @@ export const getUserTopArtists = async ( */ export const getUserTopTracks = async ( client: HTTPClient, - opts: GetUserTopItemsOpts, + opts?: GetUserTopItemsOpts, ) => { return await getUserTopItems(client, "tracks", opts); };