mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Pretty code
This commit is contained in:
@@ -123,18 +123,12 @@ async function stream(url: string, options: StreamOptions = {}): Promise<YouTube
|
|||||||
else return await yt_stream(url, options);
|
else return await yt_stream(url, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function search(
|
async function search(query: string, options: { source: { deezer: 'album' } } & SearchOptions): Promise<DeezerAlbum[]>;
|
||||||
query: string,
|
|
||||||
options: { source: { deezer: 'album' } } & SearchOptions
|
|
||||||
): Promise<DeezerAlbum[]>;
|
|
||||||
async function search(
|
async function search(
|
||||||
query: string,
|
query: string,
|
||||||
options: { source: { deezer: 'playlist' } } & SearchOptions
|
options: { source: { deezer: 'playlist' } } & SearchOptions
|
||||||
): Promise<DeezerPlaylist[]>;
|
): Promise<DeezerPlaylist[]>;
|
||||||
async function search(
|
async function search(query: string, options: { source: { deezer: 'track' } } & SearchOptions): Promise<DeezerTrack[]>;
|
||||||
query: string,
|
|
||||||
options: { source: { deezer: 'track' } } & SearchOptions
|
|
||||||
): Promise<DeezerTrack[]>;
|
|
||||||
async function search(
|
async function search(
|
||||||
query: string,
|
query: string,
|
||||||
options: { source: { soundcloud: 'albums' } } & SearchOptions
|
options: { source: { soundcloud: 'albums' } } & SearchOptions
|
||||||
@@ -497,12 +491,12 @@ export {
|
|||||||
video_basic_info,
|
video_basic_info,
|
||||||
video_info,
|
video_info,
|
||||||
yt_validate
|
yt_validate
|
||||||
}
|
};
|
||||||
|
|
||||||
// Export Types
|
// Export Types
|
||||||
export { Deezer, YouTube, SoundCloud, Spotify }
|
export { Deezer, YouTube, SoundCloud, Spotify };
|
||||||
|
|
||||||
// Export Default
|
// Export Default
|
||||||
export default {
|
export default {
|
||||||
DeezerAlbum,
|
DeezerAlbum,
|
||||||
DeezerPlaylist,
|
DeezerPlaylist,
|
||||||
|
|||||||
Reference in New Issue
Block a user