Common stuff initial

This commit is contained in:
Torben Pi Jensen
2023-11-05 15:27:38 +01:00
parent f6790de669
commit 1e98cc84d5
3 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -4,10 +4,10 @@ export class Song {
public title: string;
public url: string;
public image: string;
public length: number;
public length: number | null;
constructor(type: SongType, title: string, url: string, image: string, length: number) {
constructor(type: SongType, title: string, url: string, image: string, length: number | null = null) {
this.type = type;
this.title = title;
this.url = url;
@@ -20,4 +20,4 @@ export enum SongType {
YouTube,
Spotify
}