refactor: group up AnvilStatus types

main
Josue 4 years ago committed by Tsu-ba-me
parent 1642b637ee
commit 2ec90b1ea3
  1. 6
      striker-ui/types/AnvilStatus.d.ts
  2. 5
      striker-ui/types/AnvilStatusNode.d.ts

@ -1,3 +1,9 @@
declare type AnvilStatusNode = {
state: 'unknown' | 'off' | 'on' | 'accessible' | 'ready';
state_percent: number;
state_message: string;
};
declare type AnvilStatus = {
anvil_state: 'optimal' | 'not_ready' | 'degraded';
nodes: Array<{

@ -1,5 +0,0 @@
declare type AnvilStatusNode = {
state: 'unknown' | 'off' | 'on' | 'accessible' | 'ready';
state_percent: number;
state_message: string;
};
Loading…
Cancel
Save