More stuff

This commit is contained in:
Torben Pi Jensen
2023-11-09 19:30:55 +01:00
parent f8104ffbfe
commit 2da7f2f1c9
7 changed files with 165 additions and 53 deletions
+19 -8
View File
@@ -1,12 +1,23 @@
export declare class Song {
type: SongType;
title: string;
url: string;
image: string;
length: number | null;
constructor(type: SongType, title: string, url: string, image: string, length?: number | null);
}
export declare enum SongType {
YouTube = 0,
Spotify = 1
}
export declare class SearchResult {
type: SongType;
title: string;
songId: string;
image: string;
constructor(type: SongType, title: string, songId: string, image: string);
}
export declare class QueuedSong {
title: string;
image: string;
constructor(title: string, image: string);
}
export declare class Song {
type: SongType;
songId: string;
title: string;
position: number;
constructor(type: SongType, songId: string, title: string, position: number);
}