From 799f6d65aaaf3141ffbfc44d8aba2c814780a02e Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 25 Mar 2021 11:02:50 -0400 Subject: [PATCH] refactor: modify AnvilStatus type to match current definition in docs --- striker-ui/types/AnvilStatus.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/striker-ui/types/AnvilStatus.d.ts b/striker-ui/types/AnvilStatus.d.ts index 13e7df01..1f4ebff8 100644 --- a/striker-ui/types/AnvilStatus.d.ts +++ b/striker-ui/types/AnvilStatus.d.ts @@ -1,4 +1,8 @@ declare type AnvilStatus = { - nodes: AnvilNodeStatus[]; - timestamp: number; + anvil_state: 'optimal' | 'not_ready' | 'degraded'; + nodes: Array<{ + state: 'unknown' | 'off' | 'on' | 'accessible' | 'ready'; + state_percent: number; + state_message: string; + }>; };