mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-08 00:32:19 +02:00
37 lines
666 B
TypeScript
37 lines
666 B
TypeScript
import {SharedChan} from "./chan";
|
|
|
|
export type SharedPrefixObject = {
|
|
symbol: string;
|
|
mode: string;
|
|
};
|
|
|
|
export type SharedNetworkChan = SharedChan & {
|
|
totalMessages: number;
|
|
};
|
|
|
|
export type SharedPrefix = {
|
|
prefix: SharedPrefixObject[];
|
|
modeToSymbol: {[mode: string]: string};
|
|
symbols: string[];
|
|
};
|
|
|
|
export type SharedServerOptions = {
|
|
CHANTYPES: string[];
|
|
PREFIX: SharedPrefix;
|
|
NETWORK: string;
|
|
};
|
|
|
|
export type SharedNetworkStatus = {
|
|
connected: boolean;
|
|
secure: boolean;
|
|
};
|
|
|
|
export type SharedNetwork = {
|
|
uuid: string;
|
|
name: string;
|
|
nick: string;
|
|
serverOptions: SharedServerOptions;
|
|
status: SharedNetworkStatus;
|
|
channels: SharedNetworkChan[];
|
|
};
|