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

Function readBatchStepRecord

src/batch-contract.ts:29–38  ·  view source on GitHub ↗
(
  step: unknown,
  stepNumber: number,
  makeError: BatchStepErrorFactory = batchInvalidArgsError,
)

Source from the content-addressed store, hash-verified

27}
28
29export function readBatchStepRecord(
30 step: unknown,
31 stepNumber: number,
32 makeError: BatchStepErrorFactory = batchInvalidArgsError,
33): Record<string, unknown> {
34 if (!isRecord(step)) {
35 throw makeError(`Invalid batch step ${stepNumber}.`);
36 }
37 return step;
38}
39
40export function readBatchStepInputObject(
41 record: Record<string, unknown>,

Callers 2

readBatchStepFunction · 0.90
readBatchDaemonStepFunction · 0.90

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…