More stuff
This commit is contained in:
parent
6a3eb21439
commit
2d561d15cd
@ -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
3
dist/dataTypes.d.ts
vendored
@ -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
3
dist/dataTypes.js
vendored
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user