Move roles and positions to it's own type alias.

This commit is contained in:
Oliver-Akins 2020-10-22 23:30:55 -06:00
parent 32d56475e2
commit 3e67e5d296

8
src/types/db.d.ts vendored
View file

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