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

Function parseIntFlag

packages/cli/src/commands/cloudrun.ts:836–840  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

834
835// fallow-ignore-next-line complexity
836function parseIntFlag(raw: unknown): number | undefined {
837 if (raw === undefined || raw === null || raw === "") return undefined;
838 const n = Number.parseInt(String(raw), 10);
839 return Number.isFinite(n) ? n : undefined;
840}
841function parsePositiveInt(raw: unknown, flagName: string): number | undefined {
842 const n = parseIntFlag(raw);
843 if (n === undefined) return undefined;

Callers 3

runRenderFunction · 0.70
runRenderBatchFunction · 0.70
parsePositiveIntFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected