fix: narrow DEPLOY_STATUS_DOT type to match StatusDotVariant
Fixes pre-existing TS2322 where Record<string, string> was not assignable to the StatusDotVariant union type. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -51,7 +51,7 @@ const STATUS_COLORS: Record<string, 'success' | 'warning' | 'error' | 'auto' | '
|
||||
DEGRADED: 'warning', STOPPING: 'auto',
|
||||
};
|
||||
|
||||
const DEPLOY_STATUS_DOT: Record<string, string> = {
|
||||
const DEPLOY_STATUS_DOT: Record<string, 'live' | 'stale' | 'dead' | 'success' | 'warning' | 'error' | 'running'> = {
|
||||
RUNNING: 'live', STARTING: 'running', DEGRADED: 'stale',
|
||||
STOPPING: 'stale', STOPPED: 'dead', FAILED: 'error',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user