From 9c640ace626d5359784e7b14e52356bda2f1dee8 Mon Sep 17 00:00:00 2001 From: Torben Pi Jensen Date: Thu, 9 Nov 2023 20:49:45 +0100 Subject: [PATCH] More stuff --- dataTypes.ts | 6 +++--- dist/dataTypes.d.ts | 4 ++-- dist/dataTypes.js | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dataTypes.ts b/dataTypes.ts index cf5b407..b3a38e8 100644 --- a/dataTypes.ts +++ b/dataTypes.ts @@ -5,13 +5,13 @@ export enum SongType { export class Song { - constructor(public type: SongType, public title: string, public songId: string, public image: string) { + constructor(public type: SongType, public title: string, public songId: string, public image: string, public length: number) { } } export class PlayingSong extends Song { - constructor(type: SongType, title: string, songId: string, image: string, public length: number, public position: number) { - super(type, title, songId, image); + constructor(type: SongType, title: string, songId: string, image: string, length: number, public position: number) { + super(type, title, songId, image, length); } } diff --git a/dist/dataTypes.d.ts b/dist/dataTypes.d.ts index f6e5313..e3f8a6b 100644 --- a/dist/dataTypes.d.ts +++ b/dist/dataTypes.d.ts @@ -7,10 +7,10 @@ export declare class Song { title: string; songId: string; image: string; - constructor(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 { - length: number; position: number; constructor(type: SongType, title: string, songId: string, image: string, length: number, position: number); } diff --git a/dist/dataTypes.js b/dist/dataTypes.js index cf5281a..b1dbf47 100644 --- a/dist/dataTypes.js +++ b/dist/dataTypes.js @@ -22,11 +22,12 @@ var SongType; SongType[SongType["Spotify"] = 1] = "Spotify"; })(SongType = exports.SongType || (exports.SongType = {})); var Song = /** @class */ (function () { - function Song(type, title, songId, image) { + function Song(type, title, songId, image, length) { this.type = type; this.title = title; this.songId = songId; this.image = image; + this.length = length; } return Song; }()); @@ -34,8 +35,7 @@ exports.Song = Song; var PlayingSong = /** @class */ (function (_super) { __extends(PlayingSong, _super); function PlayingSong(type, title, songId, image, length, position) { - var _this = _super.call(this, type, title, songId, image) || this; - _this.length = length; + var _this = _super.call(this, type, title, songId, image, length) || this; _this.position = position; return _this; }