MCPcopy Index your code
hub / github.com/callstack/agent-device / readPositiveInteger

Function readPositiveInteger

src/daemon/client/daemon-client-metadata.ts:89–91  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

87}
88
89function readPositiveInteger(value: unknown): number | undefined {
90 return Number.isInteger(value) && Number(value) > 0 ? Number(value) : undefined;
91}
92
93function readDaemonLockInfo(lockPath: string): DaemonLockInfo | null {
94 const data = readJsonFile(lockPath);

Callers 2

readDaemonInfoFunction · 0.70
readDaemonInfoPortsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected