MCPcopy Create free account
hub / github.com/callstack/agent-device / readBatchSteps

Function readBatchSteps

src/commands/batch/metadata.ts:120–125  ·  view source on GitHub ↗
(steps: unknown, nestedCommands: readonly string[])

Source from the content-addressed store, hash-verified

118}
119
120function readBatchSteps(steps: unknown, nestedCommands: readonly string[]): BatchCommandStep[] {
121 if (!Array.isArray(steps)) {
122 throw new Error('Expected steps to be an array.');
123 }
124 return steps.map((step, index) => readBatchStep(step, index + 1, nestedCommands));
125}
126
127function readBatchStep(
128 step: unknown,

Callers 1

batchFieldsFunction · 0.70

Calls 1

readBatchStepFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…