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

Function readOptionalString

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

Source from the content-addressed store, hash-verified

83}
84
85function readOptionalString(value: unknown): string | undefined {
86 return typeof value === 'string' ? value : undefined;
87}
88
89function readPositiveInteger(value: unknown): number | undefined {
90 return Number.isInteger(value) && Number(value) > 0 ? Number(value) : undefined;

Callers 1

readDaemonInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected