From 334623e3bfd315927285831eb0a60f5b529fa677 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 29 Apr 2021 15:48:34 -0400 Subject: [PATCH] refactor: change data type to match the specs in the design document --- striker-ui/types/AnvilServers.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/striker-ui/types/AnvilServers.d.ts b/striker-ui/types/AnvilServers.d.ts index 828ac27d..4fd2b19a 100644 --- a/striker-ui/types/AnvilServers.d.ts +++ b/striker-ui/types/AnvilServers.d.ts @@ -1,7 +1,15 @@ declare type AnvilServer = { server_name: string; server_uuid: string; - server_state: string; + server_state: + | 'running' + | 'idle' + | 'paused' + | 'in_shutdown' + | 'shut_off' + | 'crashed' + | 'pmsuspended' + | 'migrating'; server_host_index: number; };