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

Function readContextInt

src/core/dispatch-interactions.ts:319–327  ·  view source on GitHub ↗
(
  value: number | undefined,
  fallback: number,
  label: string,
  min: number,
  max: number,
)

Source from the content-addressed store, hash-verified

317}
318
319function readContextInt(
320 value: number | undefined,
321 fallback: number,
322 label: string,
323 min: number,
324 max: number,
325): number {
326 return requireIntInRange(value === undefined ? fallback : value, label, min, max);
327}
328
329function validatePressSeriesOptions({ doubleTap, holdMs, jitterPx }: PressSeriesOptions): void {
330 if (doubleTap && holdMs > 0) {

Callers 1

readPressSeriesOptionsFunction · 0.85

Calls 1

requireIntInRangeFunction · 0.90

Tested by

no test coverage detected