anvil/striker-ui/types/AnvilStatus.d.ts
2021-06-04 12:11:49 -04:00

13 lines
276 B
TypeScript

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<{
AnvilStatusNode;
}>;
};