Add types for the server.info websocket events
This commit is contained in:
parent
cb09d4a9df
commit
442230deb6
2 changed files with 11 additions and 0 deletions
|
|
@ -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";
|
||||
10
common/src/types/events/server_info.ts
Normal file
10
common/src/types/events/server_info.ts
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue