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

Function isSupportedPredicate

src/utils/selector-is-predicates.ts:14–16  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

12export type IsPredicate = 'visible' | 'hidden' | 'exists' | 'editable' | 'selected' | 'text';
13
14export function isSupportedPredicate(input: string): input is IsPredicate {
15 return ['visible', 'hidden', 'exists', 'editable', 'selected', 'text'].includes(input);
16}
17
18export function evaluateIsPredicate(params: {
19 predicate: Exclude<IsPredicate, 'exists'>;

Callers 2

isCommandFunction · 0.90
dispatchIsViaRuntimeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected