UNPKG

ts3-nodejs-library

Version:
42 lines (35 loc) 717 B
export enum SelectType { NONE, SID, PORT } export interface ActiveEvent { event: string id?: string } export interface LoginInfo { username: string password: string } export type Context = SelectPortContext | SelectSidContext | SelectNoneContext export interface SelectNoneContext extends BaseContext { selectType: SelectType.NONE selected: 0 } export interface SelectPortContext extends BaseContext { selectType: SelectType.PORT selected: number } export interface SelectSidContext extends BaseContext { selectType: SelectType.SID selected: string } export interface BaseContext { selectType: SelectType events: ActiveEvent[] clientNickname?: string login?: LoginInfo }