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

Function nonNegInt

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

Source from the content-addressed store, hash-verified

88
89const nonNegInt =
90 (max: number): Sanitize =>
91 (v) =>
92 typeof v === 'number' && Number.isInteger(v) && v >= 0 && v <= max ? v : undefined;
93
94/**
95 * 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