MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / parseIntFlag

Function parseIntFlag

packages/cli/src/commands/lambda.ts:420–424  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

418});
419
420function parseIntFlag(raw: unknown): number | undefined {
421 if (raw === undefined || raw === null || raw === "") return undefined;
422 const n = Number.parseInt(String(raw), 10);
423 return Number.isFinite(n) ? n : undefined;
424}
425
426/**
427 * Parse a flag that must be a positive integer (>= 1) when supplied.

Callers 4

runFunction · 0.70
parsePositiveIntFunction · 0.70
runFunction · 0.50
runFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected