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

Function validatePressSeriesOptions

src/core/dispatch-interactions.ts:329–336  ·  view source on GitHub ↗
({ doubleTap, holdMs, jitterPx }: PressSeriesOptions)

Source from the content-addressed store, hash-verified

327}
328
329function validatePressSeriesOptions({ doubleTap, holdMs, jitterPx }: PressSeriesOptions): void {
330 if (doubleTap && holdMs > 0) {
331 throw new AppError('INVALID_ARGS', 'double-tap cannot be combined with hold-ms');
332 }
333 if (doubleTap && jitterPx > 0) {
334 throw new AppError('INVALID_ARGS', 'double-tap cannot be combined with jitter-px');
335 }
336}
337
338// Runs an ordered step list as budget-chunked `sequence` runner requests and aggregates the
339// chunk responses. Chunks are bounded by BOTH a step-count cap and an estimated wall-clock

Callers 1

handlePressCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected