Make data actually representative of what the client will get
This commit is contained in:
parent
564206dd8b
commit
22a76984eb
1 changed files with 3 additions and 3 deletions
6
src/types/client_data.d.ts
vendored
6
src/types/client_data.d.ts
vendored
|
|
@ -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[]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue