MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / nonNegInt

Function nonNegInt

telemetry-worker/src/index.ts:80–82  ·  view source on GitHub ↗
(max: number)

Source from the content-addressed store, hash-verified

78
79const nonNegInt =
80 (max: number): Sanitize =>
81 (v) =>
82 typeof v === 'number' && Number.isInteger(v) && v >= 0 && v <= max ? v : undefined;
83
84/**
85 * THE allowlist. This mirrors docs/design/telemetry.md exactly — changing one

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected