diff --git a/src/types/db.d.ts b/src/types/db.d.ts new file mode 100644 index 0000000..ceb6a6a --- /dev/null +++ b/src/types/db.d.ts @@ -0,0 +1,17 @@ +interface player { + chancellor: boolean; + president: boolean; + hitler: boolean; + host: boolean; +} + +type game_states = "lobby"; + +interface database { + players: { + [index: string]: player + }; + host: string; + game_code: string; + state: game_states; +} \ No newline at end of file