mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 06:34:21 +00:00
fix join socket type
This commit is contained in:
parent
35e38d13c4
commit
9c4d24d1f7
2 changed files with 7 additions and 9 deletions
|
@ -41,10 +41,3 @@ export type SharedChan = {
|
|||
closed?: boolean;
|
||||
num_users?: number;
|
||||
};
|
||||
|
||||
export type InitClientChan = {
|
||||
network: string;
|
||||
chan: SharedNetworkChan;
|
||||
shouldOpen: boolean;
|
||||
index: number;
|
||||
};
|
||||
|
|
9
shared/types/socket-events.d.ts
vendored
9
shared/types/socket-events.d.ts
vendored
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue