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

Function count

graph-ui/src/impact/selection-impact.ts:91–95  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

89 return value;
90}
91function count(value: unknown): number {
92 if (typeof value !== 'number' || !Number.isSafeInteger(value) || value < 0)
93 throw new Error('Invalid impact count');
94 return value;
95}
96function flag(value: unknown): boolean {
97 if (typeof value !== 'boolean') throw new Error('Invalid impact flag');
98 return value;

Callers 2

nodeFunction · 0.70
readSelectionImpactFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected