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

Function formatSwipeMessage

src/core/dispatch-interactions.ts:1107–1110  ·  view source on GitHub ↗
(count: number, pattern: SwipePattern)

Source from the content-addressed store, hash-verified

1105}
1106
1107function formatSwipeMessage(count: number, pattern: SwipePattern): string {
1108 if (count <= 1) return 'Swiped';
1109 return pattern === 'ping-pong' ? `Swiped ${count} times (ping-pong)` : `Swiped ${count} times`;
1110}
1111
1112function formatTextLengthMessage(action: 'Typed' | 'Filled', text: string): string {
1113 return `${action} ${Array.from(text).length} chars`;

Callers 1

runSwipeCoordinatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected