Common stuff initial
This commit is contained in:
+3
-3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user