MCPcopy Create free account
hub / github.com/TanStack/cli / parsePositiveInteger

Function parsePositiveInteger

packages/cli/src/cli.ts:576–582  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

574 }
575
576 function parsePositiveInteger(value: string) {
577 const parsed = Number(value)
578 if (!Number.isInteger(parsed) || parsed < 1) {
579 throw new InvalidArgumentError('Value must be a positive integer')
580 }
581 return parsed
582 }
583
584 async function runWithTelemetry<T>(
585 command: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected