aboutsummaryrefslogtreecommitdiff
path: root/src/server/Message.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-13 10:44:53 -0400
committerbobzel <zzzman@gmail.com>2024-08-13 10:44:53 -0400
commitef79ab121c881d3e6a2982ce2e01da40294af656 (patch)
treec4e792dca58b1c2e303fb7b00d0cbbeadff894c9 /src/server/Message.ts
parent5c7964173d80752200727d8340825210c2704265 (diff)
from last
Diffstat (limited to 'src/server/Message.ts')
-rw-r--r--src/server/Message.ts18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/server/Message.ts b/src/server/Message.ts
index 03150c841..8e30cd6df 100644
--- a/src/server/Message.ts
+++ b/src/server/Message.ts
@@ -47,19 +47,7 @@ export enum Types {
export interface Transferable {
readonly id: string;
readonly type: Types;
- readonly data?: any;
-}
-
-export enum YoutubeQueryTypes {
- Channels,
- SearchVideo,
- VideoDetails,
-}
-
-export interface YoutubeQueryInput {
- readonly type: YoutubeQueryTypes;
- readonly userInput?: string;
- readonly videoIds?: string;
+ readonly data?: unknown;
}
export interface Reference {
@@ -99,6 +87,7 @@ export interface RoomMessage {
readonly room: string;
}
+// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace MessageStore {
export const Foo = new Message<string>('Foo');
export const Bar = new Message<string>('Bar');
@@ -106,7 +95,7 @@ export namespace MessageStore {
export const GetField = new Message<string>('Get Field'); // send string 'id' get Transferable back
export const GetFields = new Message<string[]>('Get Fields'); // send string[] of 'id' get Transferable[] back
export const GetDocument = new Message<string>('Get Document');
- export const DeleteAll = new Message<any>('Delete All');
+ export const DeleteAll = new Message<unknown>('Delete All');
export const ConnectionTerminated = new Message<string>('Connection Terminated');
export const GesturePoints = new Message<GestureContent>('Gesture Points');
@@ -118,7 +107,6 @@ export namespace MessageStore {
export const GetRefFields = new Message<string[]>('Get Ref Fields');
export const UpdateField = new Message<Diff>('Update Ref Field');
export const CreateField = new Message<Reference>('Create Ref Field');
- export const YoutubeApiQuery = new Message<YoutubeQueryInput>('Youtube Api Query');
export const DeleteField = new Message<string>('Delete field');
export const DeleteFields = new Message<string[]>('Delete fields');