Move roles and positions to it's own type alias.
This commit is contained in:
parent
32d56475e2
commit
3e67e5d296
1 changed files with 6 additions and 2 deletions
8
src/types/db.d.ts
vendored
8
src/types/db.d.ts
vendored
|
|
@ -1,8 +1,12 @@
|
|||
type roles = "liberal"|"fascist"|"hitler"|undefined;
|
||||
|
||||
type positions = "chancellor"|"president"|undefined;
|
||||
|
||||
interface player {
|
||||
position: "chancellor"|"president"|undefined;
|
||||
role: "liberal"|"fascist"|"hitler"|undefined;
|
||||
position: positions;
|
||||
socket: string;
|
||||
host: boolean;
|
||||
role: roles;
|
||||
id: string;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue