Add database types

This commit is contained in:
Oliver-Akins 2020-09-28 23:06:33 -06:00
parent a1058444a9
commit 5c386eb416

17
src/types/db.d.ts vendored Normal file
View file

@ -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;
}