Common stuff initial
This commit is contained in:
parent
f6790de669
commit
1e98cc84d5
@ -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;
|
||||
|
||||
4
dist/dataTypes.d.ts
vendored
4
dist/dataTypes.d.ts
vendored
@ -3,8 +3,8 @@ export declare class Song {
|
||||
title: string;
|
||||
url: string;
|
||||
image: string;
|
||||
length: number;
|
||||
constructor(type: SongType, title: string, url: string, image: string, length: number);
|
||||
length: number | null;
|
||||
constructor(type: SongType, title: string, url: string, image: string, length?: number | null);
|
||||
}
|
||||
export declare enum SongType {
|
||||
YouTube = 0,
|
||||
|
||||
1
dist/dataTypes.js
vendored
1
dist/dataTypes.js
vendored
@ -3,6 +3,7 @@ exports.__esModule = true;
|
||||
exports.SongType = exports.Song = void 0;
|
||||
var Song = /** @class */ (function () {
|
||||
function Song(type, title, url, image, length) {
|
||||
if (length === void 0) { length = null; }
|
||||
this.type = type;
|
||||
this.title = title;
|
||||
this.url = url;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user