aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/document.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.ts')
-rw-r--r--src/document.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/document.ts b/src/document.ts
index fc6b123a..595595b7 100644
--- a/src/document.ts
+++ b/src/document.ts
@@ -6,26 +6,26 @@
import { PageType } from "./types";
interface StartMessage {
- type: "navigation",
- pageType: PageType
- videoID: string | null,
+ type: "navigation";
+ pageType: PageType;
+ videoID: string | null;
}
interface FinishMessage extends StartMessage {
- channelID: string,
- channelTitle: string
+ channelID: string;
+ channelTitle: string;
}
interface AdMessage {
- type: "ad",
- playing: boolean
+ type: "ad";
+ playing: boolean;
}
interface VideoData {
- type: "data",
- videoID: string,
- isLive: boolean,
- isPremiere: boolean
+ type: "data";
+ videoID: string;
+ isLive: boolean;
+ isPremiere: boolean;
}
type WindowMessage = StartMessage | FinishMessage | AdMessage | VideoData;