From 3e67e5d296d7abdb830f270cdcea8b0d4d05ac8e Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Thu, 22 Oct 2020 23:30:55 -0600 Subject: [PATCH] Move roles and positions to it's own type alias. --- src/types/db.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/types/db.d.ts b/src/types/db.d.ts index ba1cebe..3e87f21 100644 --- a/src/types/db.d.ts +++ b/src/types/db.d.ts @@ -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; }