git.schokokeks.org
Repositories
Help
Report an Issue
wirc-frontend.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
d561abc
Branches
Tags
master
wirc-frontend.git
source
logic
types.ts
[mod] added view for info entries
Christian Fraß
commited
d561abc
at 2021-11-20 16:01:55
types.ts
Blame
History
Raw
type int = number; type float = number; type type_conf = { backend: { scheme: string; host: string; port: int; path: string; }; settings: { poll_interval_in_milliseconds: 2000; }; irc: { server: string; predefined_channel: string; predefined_nickname_prefix: string; } }; enum enum_state { offline = "offline", connecting = "connecting", online = "online", } enum enum_entrykind { message = "message", info = "info", } type type_event = { timestamp: int; kind: string; data: any; }; type type_spot = { kind: string; name: string; }; type type_entry = { timestamp: int; kind: string; sender: (null | string); content: string; }; type type_user = { name: string; role: string; }; type type_channel = { users: Array<type_user>; entries: Array<type_entry>; }; type type_query = { entries: Array<type_entry>; }; type type_model = { state: enum_state; connection_id: (null | string); nickname: (null | string); channels: Record<string, type_channel>; queries: Record<string, type_query>; active: (null | type_spot); listeners: Record<string, Array<(details?: any)=>void>>; };