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

Function takeString

src/config/OptionResolver.ts:468–473  ·  view source on GitHub ↗
(key: keyof ThemeConfig)

Source from the content-addressed store, hash-verified

466
467 const input = themeInput as Partial<Record<keyof ThemeConfig, unknown>>;
468 const takeString = (key: keyof ThemeConfig): string | undefined => {
469 const v = input[key];
470 if (typeof v !== 'string') return undefined;
471 const trimmed = v.trim();
472 return trimmed.length > 0 ? trimmed : undefined;
473 };
474
475 const fontSizeRaw = input.fontSize;
476 const fontSize =

Callers 1

resolveThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected