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

Function readRequiredPlatform

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

Source from the content-addressed store, hash-verified

60}
61
62export function readRequiredPlatform(record: Record<string, unknown>, key: string): PublicPlatform {
63 return readRequired(record, key, parsePlatform, `Daemon response has invalid "${key}".`);
64}
65
66export function readRequiredDeviceKind(record: Record<string, unknown>, key: string): DeviceKind {
67 return readRequired(record, key, parseDeviceKind, `Daemon response has invalid "${key}".`);

Callers 2

normalizeDeployResultFunction · 0.90
readClientDeviceIdentityFunction · 0.90

Calls 1

readRequiredFunction · 0.85

Tested by

no test coverage detected