add missing const, add key check
This commit is contained in:
1 parent
1ca38a31c9
commit
8f6c909acd
2 files changed
+13
-4
No files matched your search
@@ -97,7 +97,7 @@ export interface HardwareStatusPayload {
|
||||
}
|
||||
|
||||
// Docker host monitoring
|
||||
export const DockerContainerStates = ["created", "running", "paused", "restarting", "removing", "exited", "dead"];
|
||||
export const DockerContainerStates = ["created", "running", "paused", "restarting", "removing", "exited", "dead"] as const;
|
||||
export type DockerContainerState = (typeof DockerContainerStates)[number];
|
||||
|
||||
export const DockerHealthStatuses = ["healthy", "unhealthy", "starting", "none"] as const;
|
||||
|
||||
Reference in new issue
Block a user