common/dist/dataTypes.d.ts
Torben Pi Jensen 4d3834be1d More stuff
2023-11-09 22:12:28 +01:00

21 lines
650 B
TypeScript

export declare enum SongType {
YouTube = 0,
Spotify = 1
}
export declare class Song {
type: SongType;
title: string;
songId: string;
image: string;
constructor(type: SongType, title: string, songId: string, image: string);
}
export declare class QueuedSong extends Song {
listener: string;
constructor(type: SongType, title: string, songId: string, image: string, listener: string);
}
export declare class PlayingSong extends QueuedSong {
length: number;
position: number;
constructor(type: SongType, title: string, songId: string, image: string, listener: string, length: number, position: number);
}