aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/messageTypes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/messageTypes.ts')
-rw-r--r--src/messageTypes.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/messageTypes.ts b/src/messageTypes.ts
index 191166a0..6b9f3225 100644
--- a/src/messageTypes.ts
+++ b/src/messageTypes.ts
@@ -17,7 +17,8 @@ interface DefaultMessage {
| "isChannelWhitelisted"
| "submitTimes"
| "refreshSegments"
- | "closePopup";
+ | "closePopup"
+ | "getLogs";
}
interface BoolValueMessage {
@@ -104,7 +105,8 @@ export type MessageResponse =
| Record<string, never> // empty object response {}
| VoteResponse
| ImportSegmentsResponse
- | RefreshSegmentsResponse;
+ | RefreshSegmentsResponse
+ | LogResponse;
export interface VoteResponse {
successType: number;
@@ -120,6 +122,11 @@ export interface RefreshSegmentsResponse {
hasVideo: boolean;
}
+export interface LogResponse {
+ debug: string[];
+ warn: string[];
+}
+
export interface TimeUpdateMessage {
message: "time";
time: number;