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

Function number

graph-ui/src/galaxy/graph-scope.ts:33–33  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

31}
32const BATCH_SIZE = 64;
33const number = (value: string | undefined): number | undefined => value !== undefined && value !== '' && Number.isFinite(Number(value)) ? Number(value) : undefined;
34const id = (value: string | undefined): number => {
35 const parsed = number(value);
36 if (parsed === undefined || !Number.isSafeInteger(parsed) || parsed < 0) throw new Error('Graph response contains an invalid identity.');

Callers 4

idFunction · 0.70
readNodeFunction · 0.70
loadGraphScopeFunction · 0.70
frontierCallCountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected