MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / optionalNumber

Function optionalNumber

graph-ui/src/projects/projects-model.ts:32–34  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

30const text = (value: unknown): string => (typeof value === 'string' ? value : '');
31
32function optionalNumber(value: unknown): number | undefined {
33 return typeof value === 'number' && Number.isFinite(value) ? value : undefined;
34}
35
36function strings(value: unknown): string[] {
37 return Array.isArray(value) ? value.filter((entry): entry is string => typeof entry === 'string') : [];

Callers 7

readIndexJobsFunction · 0.85
readIndexStartedFunction · 0.85
readHealthFunction · 0.85
readLogsFunction · 0.85
readUiLogTailFunction · 0.85
measurementFunction · 0.85
readProcessesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected