diff --git a/shared/types/chan.ts b/shared/types/chan.ts index 38c4feb8..ddec0ffb 100644 --- a/shared/types/chan.ts +++ b/shared/types/chan.ts @@ -41,10 +41,3 @@ export type SharedChan = { closed?: boolean; num_users?: number; }; - -export type InitClientChan = { - network: string; - chan: SharedNetworkChan; - shouldOpen: boolean; - index: number; -}; diff --git a/shared/types/socket-events.d.ts b/shared/types/socket-events.d.ts index e89887f0..236f8de0 100644 --- a/shared/types/socket-events.d.ts +++ b/shared/types/socket-events.d.ts @@ -1,5 +1,5 @@ import {SharedMention} from "./mention"; -import {ChanState, InitClientChan, SharedChan} from "./chan"; +import {ChanState, SharedChan} from "./chan"; import {SharedNetwork} from "./network"; import {SharedMsg, LinkPreview} from "./msg"; import {SharedUser} from "./user"; @@ -93,7 +93,12 @@ interface ServerToClientEvents { connecting: NoPayloadEventHandler; - join: EventHandler<{shouldOpen: boolean; index: number; network: string; chan: InitClientChan}>; + join: EventHandler<{ + shouldOpen: boolean; + index: number; + network: string; + chan: SharedNetworkChan; + }>; } interface ClientToServerEvents {