From 22a76984ebb01d34a2a9be02f7567b77dfe0b14f Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Thu, 1 Oct 2020 22:04:36 -0600 Subject: [PATCH] Make data actually representative of what the client will get --- src/types/client_data.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/client_data.d.ts b/src/types/client_data.d.ts index 49d6f5a..c86507a 100644 --- a/src/types/client_data.d.ts +++ b/src/types/client_data.d.ts @@ -12,15 +12,15 @@ interface HostInformation extends response { // Event is only emitted when the JoinGame event is successful, so there is no // success indicator in this response interface NewPlayer { - player: string; + player?: string; } interface GameJoined extends response { // properties depend on `success` being `true` - players: string[]; + players?: string[]; } interface PlayerListResponse extends response { // properties depend on `success` being `true` - players: string[] + players?: string[] } \ No newline at end of file