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 {
|
interface player {
|
||||||
position: "chancellor"|"president"|undefined;
|
position: positions;
|
||||||
role: "liberal"|"fascist"|"hitler"|undefined;
|
|
||||||
socket: string;
|
socket: string;
|
||||||
host: boolean;
|
host: boolean;
|
||||||
|
role: roles;
|
||||||
id: string;
|
id: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue