(palette: unknown)
| 445 | }; |
| 446 | |
| 447 | const sanitizePalette = (palette: unknown): string[] => { |
| 448 | if (!Array.isArray(palette)) return []; |
| 449 | return palette |
| 450 | .filter((c): c is string => typeof c === 'string') |
| 451 | .map((c) => c.trim()) |
| 452 | .filter((c) => c.length > 0); |
| 453 | }; |
| 454 | |
| 455 | const resolveTheme = (themeInput: unknown): ThemeConfig => { |
| 456 | const base = getTheme('dark'); |
no outgoing calls
no test coverage detected