common/dist/dataTypes.d.ts
Torben Pi Jensen c3ef658282 More stuff
2023-11-09 20:59:18 +01:00

17 lines
458 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 PlayingSong extends Song {
length: number;
position: number;
constructor(type: SongType, title: string, songId: string, image: string, length: number, position: number);
}