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

Function readInputRecord

src/commands/command-input.ts:269–275  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

267}
268
269export function readInputRecord(input: unknown): Record<string, unknown> {
270 if (input === undefined || input === null) return {};
271 if (!input || typeof input !== 'object' || Array.isArray(input)) {
272 throw new Error('Expected object arguments.');
273 }
274 return input as Record<string, unknown>;
275}
276
277export function readCommonInput(
278 record: Record<string, unknown>,

Callers 2

readGestureInputFunction · 0.90
readFieldInputFunction · 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…