@inner-dj/common 0.1.6 → 0.1.8
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/lib/src/index.d.ts +5 -1
- package/package.json +1 -1
package/lib/src/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare function throwNewError<T>(msg: string): T;
|
|
|
40
40
|
* @returns an array of files, or an empty array if an error was thrown
|
|
41
41
|
*/
|
|
42
42
|
export declare function getFilesNoError(downloadDir: string): Promise<string[]>;
|
|
43
|
-
export type Payload = RegistrationPayload | AckPayload | NowPlayingPayload | SkipPayload | QueuePayload | DownloadPayload;
|
|
43
|
+
export type Payload = RegistrationPayload | AckPayload | NowPlayingPayload | SkipPayload | QueuePayload | DownloadPayload | PausePayload;
|
|
44
44
|
export interface PayloadBase {
|
|
45
45
|
type: string;
|
|
46
46
|
body?: any;
|
|
@@ -61,6 +61,10 @@ export interface SkipPayload extends PayloadBase {
|
|
|
61
61
|
type: 'skip';
|
|
62
62
|
body?: never;
|
|
63
63
|
}
|
|
64
|
+
export interface PausePayload extends PayloadBase {
|
|
65
|
+
type: 'pause';
|
|
66
|
+
body: boolean;
|
|
67
|
+
}
|
|
64
68
|
export interface QueuePayload extends PayloadBase {
|
|
65
69
|
type: 'queue';
|
|
66
70
|
body: string;
|