MCPcopy
hub / github.com/callstack/agent-device / readRequiredString

Function readRequiredString

src/utils/parsing.ts:35–37  ·  view source on GitHub ↗
(record: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

33}
34
35export function readRequiredString(record: Record<string, unknown>, key: string): string {
36 return readRequired(record, key, parseNonEmptyString, `Daemon response is missing "${key}".`);
37}
38
39export function readOptionalString(
40 record: Record<string, unknown>,

Callers 6

createAgentDeviceClientFunction · 0.90
normalizeLeaseFunction · 0.90
normalizeDeployResultFunction · 0.90
normalizeSessionFunction · 0.90
readClientDeviceIdentityFunction · 0.90

Calls 1

readRequiredFunction · 0.85

Tested by

no test coverage detected