From 94ac350dcf9e69e575aa812aff3db4e27beda096 Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 24 Dec 2021 13:33:36 +0530 Subject: [PATCH] Pretty code --- play-dl/index.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/play-dl/index.ts b/play-dl/index.ts index 3fe6c69..6406d69 100644 --- a/play-dl/index.ts +++ b/play-dl/index.ts @@ -123,18 +123,12 @@ async function stream(url: string, options: StreamOptions = {}): Promise; +async function search(query: string, options: { source: { deezer: 'album' } } & SearchOptions): Promise; async function search( query: string, options: { source: { deezer: 'playlist' } } & SearchOptions ): Promise; -async function search( - query: string, - options: { source: { deezer: 'track' } } & SearchOptions -): Promise; +async function search(query: string, options: { source: { deezer: 'track' } } & SearchOptions): Promise; async function search( query: string, options: { source: { soundcloud: 'albums' } } & SearchOptions @@ -497,12 +491,12 @@ export { video_basic_info, video_info, yt_validate -} +}; // Export Types -export { Deezer, YouTube, SoundCloud, Spotify } +export { Deezer, YouTube, SoundCloud, Spotify }; -// Export Default +// Export Default export default { DeezerAlbum, DeezerPlaylist,