Add types for the server.info websocket events

This commit is contained in:
Oliver-Akins 2022-01-04 20:30:46 -07:00
parent cb09d4a9df
commit 442230deb6
2 changed files with 11 additions and 0 deletions

View file

@ -7,4 +7,5 @@ export * from "./types/Spaceship";
// Server-Client Communications
export * from "./types/events/SaveShip";
export * from "./types/events/server_info";
export * from "./types/ServerResponse";

View file

@ -0,0 +1,10 @@
/**
* The data that the server needs in order to perform the `server.info` request.
*/
export interface IServerInfoRequest {}
/** The data sent as a response to `server.info`. */
export interface IServerInfoResponse {
/** The version that the server is currently running. */
version: string;
}