vdj 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/song.d.ts +2 -1
- package/dist/core/song.js +1 -0
- package/package.json +1 -1
- package/src/core/song.ts +5 -3
package/dist/core/song.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export default abstract class Song {
|
|
|
11
11
|
readonly title?: string;
|
|
12
12
|
readonly playlistID?: string | number;
|
|
13
13
|
constructor(service: IService);
|
|
14
|
-
|
|
14
|
+
abstract getSongInfo(): Promise<SongInfo>;
|
|
15
15
|
abstract stream(): Promise<ReadableStream> | ReadableStream | null;
|
|
16
|
+
toggleLoop(): boolean;
|
|
16
17
|
}
|
package/dist/core/song.js
CHANGED
package/package.json
CHANGED
package/src/core/song.ts
CHANGED
|
@@ -17,9 +17,11 @@ export default abstract class Song {
|
|
|
17
17
|
Object.defineProperty(this, 'service', { value: service });
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
public
|
|
21
|
-
return this.loop = !this.loop;
|
|
22
|
-
}
|
|
20
|
+
public abstract getSongInfo(): Promise<SongInfo>;
|
|
23
21
|
|
|
24
22
|
public abstract stream(): Promise<ReadableStream> | ReadableStream | null;
|
|
23
|
+
|
|
24
|
+
public toggleLoop(): boolean {
|
|
25
|
+
return this.loop = !this.loop;
|
|
26
|
+
};
|
|
25
27
|
}
|