MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / sanitizePalette

Function sanitizePalette

src/config/OptionResolver.ts:447–453  ·  view source on GitHub ↗
(palette: unknown)

Source from the content-addressed store, hash-verified

445};
446
447const 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
455const resolveTheme = (themeInput: unknown): ThemeConfig => {
456 const base = getTheme('dark');

Callers 2

resolveThemeFunction · 0.85
resolveOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected