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

Function normalizeOptionalColor

src/config/OptionResolver.ts:493–497  ·  view source on GitHub ↗
(color: unknown)

Source from the content-addressed store, hash-verified

491};
492
493const normalizeOptionalColor = (color: unknown): string | undefined => {
494 if (typeof color !== 'string') return undefined;
495 const trimmed = color.trim();
496 return trimmed.length > 0 ? trimmed : undefined;
497};
498
499const normalizeSampling = (value: unknown): SeriesSampling | undefined => {
500 if (typeof value !== 'string') return undefined;

Callers 1

resolveOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected