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

Function readPoint

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

Source from the content-addressed store, hash-verified

351}
352
353export function readPoint(record: Record<string, unknown>, key: string): PointInput {
354 const point = readRecordField(record, key);
355 return { x: requiredNumber(point, 'x'), y: requiredNumber(point, 'y') };
356}
357
358function requiredString(record: Record<string, unknown>, key: string): string {
359 const value = record[key];

Callers 3

readGestureInputFunction · 0.90
optionalPointFunction · 0.90
pointFieldFunction · 0.70

Calls 2

readRecordFieldFunction · 0.85
requiredNumberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…