mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 06:34:21 +00:00
type serverOptions for network:options
This commit is contained in:
parent
9898f38de6
commit
bb7c3925c6
2 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ socket.on("network:options", function (data) {
|
|||
const network = store.getters.findNetwork(data.network);
|
||||
|
||||
if (network) {
|
||||
network.serverOptions = data.serverOptions as typeof network.serverOptions;
|
||||
network.serverOptions = data.serverOptions;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
4
shared/types/socket-events.d.ts
vendored
4
shared/types/socket-events.d.ts
vendored
|
@ -1,6 +1,6 @@
|
|||
import {SharedMention} from "./mention";
|
||||
import {ChanState, SharedChan} from "./chan";
|
||||
import {SharedNetwork} from "./network";
|
||||
import {SharedNetwork, SharedServerOptions} from "./network";
|
||||
import {SharedMsg, LinkPreview} from "./msg";
|
||||
import {SharedUser} from "./user";
|
||||
import {SharedChangelogData} from "./changelog";
|
||||
|
@ -54,7 +54,7 @@ interface ServerToClientEvents {
|
|||
names: EventHandler<{id: number; users: SharedUser[]}>;
|
||||
|
||||
network: EventHandler<{network: SharedNetwork}>;
|
||||
"network:options": EventHandler<{network: string; serverOptions: {[key: string]: any}}>;
|
||||
"network:options": EventHandler<{network: string; serverOptions: SharedServerOptions}>;
|
||||
"network:status": EventHandler<{network: string; connected: boolean; secure: boolean}>;
|
||||
"network:info": EventHandler<{uuid: string}>;
|
||||
"network:name": EventHandler<{uuid: string; name: string}>;
|
||||
|
|
Loading…
Reference in a new issue