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

Function readRecordField

src/commands/command-input.ts:671–677  ·  view source on GitHub ↗
(record: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

669}
670
671function readRecordField(record: Record<string, unknown>, key: string): Record<string, unknown> {
672 const value = record[key];
673 if (!value || typeof value !== 'object' || Array.isArray(value)) {
674 throw new Error(`Expected ${key} to be an object.`);
675 }
676 return value as Record<string, unknown>;
677}

Callers 3

readInteractionTargetFunction · 0.85
readElementTargetFunction · 0.85
readPointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…