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

Function isClickLikeCommand

src/replay/script-utils.ts:23–25  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

21const TYPING_NUMERIC_FLAG_MAP = new Map<string, 'delayMs'>([['--delay-ms', 'delayMs']]);
22
23export function isClickLikeCommand(command: string): command is 'click' | 'press' {
24 return command === 'click' || command === 'press';
25}
26
27export function isTouchTargetCommand(command: string): command is 'click' | 'press' | 'longpress' {
28 return isClickLikeCommand(command) || command === 'longpress';

Callers 6

parseReplayScriptLineFunction · 0.90
formatSpecialActionLineFunction · 0.90
isTouchTargetCommandFunction · 0.85
appendScriptSeriesFlagsFunction · 0.85
parseReplaySeriesFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected