More stuff

This commit is contained in:
Torben Pi Jensen 2023-11-09 20:09:25 +01:00
parent 6a3eb21439
commit 2d561d15cd
3 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ export class Song {
}
export class PlayingSong extends Song {
constructor(type: SongType, title: string, songId: string, image: string, public position: number) {
constructor(type: SongType, title: string, songId: string, image: string, public length: number, public position: number) {
super(type, title, songId, image);
}
}

3
dist/dataTypes.d.ts vendored
View File

@ -10,6 +10,7 @@ export declare class Song {
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, position: number);
constructor(type: SongType, title: string, songId: string, image: string, length: number, position: number);
}

3
dist/dataTypes.js vendored
View File

@ -33,8 +33,9 @@ var Song = /** @class */ (function () {
exports.Song = Song;
var PlayingSong = /** @class */ (function (_super) {
__extends(PlayingSong, _super);
function PlayingSong(type, title, songId, image, position) {
function PlayingSong(type, title, songId, image, length, position) {
var _this = _super.call(this, type, title, songId, image) || this;
_this.length = length;
_this.position = position;
return _this;
}