common/dist/dataTypes.d.ts
Torben Pi Jensen 9c640ace62 More stuff
2023-11-09 20:49:45 +01:00

17 lines
474 B
TypeScript

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