diff options
Diffstat (limited to 'frontend/src/api/model.js')
-rw-r--r-- | frontend/src/api/model.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/frontend/src/api/model.js b/frontend/src/api/model.js index 2d1d2dde..cd718ff1 100644 --- a/frontend/src/api/model.js +++ b/frontend/src/api/model.js @@ -10,10 +10,18 @@ export type ApiErrorDetail = { export type ApiGameState = "LOBBY" | "PLAYING"; +export type ApiPlayer = { + username: string, + displayName: string, + index: number, + gameOwner: Boolean, + user: Boolean, +}; + export type ApiLobby = { id: number, name: string, - owner: ApiPlayer, + owner: string, players: ApiPlayer[], settings: ApiSettings, state: ApiGameState @@ -33,14 +41,6 @@ export type ApiSettings = { wonPointsPerVictoryPerAge: Map<number, number> }; -export type ApiPlayer = { - username: string, - displayName: string, - index: number, - gameOwner: Boolean, - user: Boolean, -}; - export type ApiTable = { boards: ApiBoard[], currentAge: number, |