diff --git a/package.json b/package.json index 539da29..fcb2383 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-teamspeak-remote-app-api-types", - "version": "1.1.0", + "version": "1.1.1", "description": "Types for the TeamSpeak 5/6 Remote App API", "license": "ISC", "type": "commonjs", diff --git a/src/types/entities.ts b/src/types/entities.ts index 3eb5e83..a65efa5 100644 --- a/src/types/entities.ts +++ b/src/types/entities.ts @@ -232,4 +232,16 @@ export interface IGroup { saveDb: boolean; sortId: string; type: number; +} + +export interface IConnectionStatus { + connectionId: number; + error: string; + hotReload: boolean; + info?: { + clientId: number; + serverName: string; + serverUid: string; + } + status: number; } \ No newline at end of file diff --git a/src/types/events.ts b/src/types/events.ts index 33c3ea4..3194c1c 100644 --- a/src/types/events.ts +++ b/src/types/events.ts @@ -1,4 +1,4 @@ -import { IChannelInfos, IChannelProperties, IClientProperties, IGroup, IInvoker, IServerProperties } from "../index"; +import { IChannelInfos, IChannelProperties, IClientProperties, IConnectionStatus, IGroup, IInvoker, IServerProperties } from "../index"; export interface ILogEvent { type: string; @@ -110,12 +110,5 @@ export interface IChannelsEvent { export interface IConnectStatusChangedEvent { type: string; - payload: { - connectionId: number; - status: number; - hotReload: boolean; - info: null | { - clientId: number; - } - }; + payload: IConnectionStatus; } \ No newline at end of file