Pretty code
This commit is contained in:
parent
6a52ab38cb
commit
94ac350dcf
@ -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,10 +491,10 @@ 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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user