fix: resolve TS build errors for CI

- Add groupRect entry to NODE_DEFAULT_COLORS (required by Record<NodeType, NodeColors>)
- Explicitly type Select onValueChange callbacks as (v: string) to satisfy
  stricter type inference in tsc -b build mode
This commit is contained in:
Pouzor
2026-03-10 17:37:00 +01:00
parent 1f1dfd807b
commit 0fb091b12c
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -22,6 +22,7 @@ export const NODE_DEFAULT_COLORS: Record<NodeType, NodeColors> = {
computer: { border: '#a855f7', background: '#21262d', icon: '#a855f7' },
cpl: { border: '#e3b341', background: '#21262d', icon: '#e3b341' },
generic: { border: '#8b949e', background: '#21262d', icon: '#8b949e' },
groupRect: { border: '#00d4ff', background: 'transparent', icon: '#00d4ff' },
}
export function resolveNodeColors(data: Pick<NodeData, 'type' | 'custom_colors'>): NodeColors {