Add database types
This commit is contained in:
parent
a1058444a9
commit
5c386eb416
1 changed files with 17 additions and 0 deletions
17
src/types/db.d.ts
vendored
Normal file
17
src/types/db.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue