diff --git a/data/example.json b/data/example.json index 610bdd4..f53b453 100644 --- a/data/example.json +++ b/data/example.json @@ -4,9 +4,8 @@ "game_code": "example", "players": { "Oliver": { - "hitler": false, - "president": false, - "chancellor": false, + "position": null, + "role": null, "host": true } } diff --git a/src/types/db.d.ts b/src/types/db.d.ts index ceb6a6a..58186bc 100644 --- a/src/types/db.d.ts +++ b/src/types/db.d.ts @@ -1,7 +1,6 @@ interface player { - chancellor: boolean; - president: boolean; - hitler: boolean; + position: "chancellor"|"president"|undefined; + role: "liberal"|"fascist"|"hitler"; host: boolean; }