Files
sanderling/pkg/spec/src/index.ts
T
pj 97d7269ba5 feat(spec): add whenRoute action gating helper
whenRoute(route, allowedRoutes, body) wraps an actions() generator
that returns [] unless route.current matches one of the allowed
values. Accepts a single route or an array.
2026-04-27 00:05:30 +07:00

43 lines
642 B
TypeScript

export type {
AccessibilityElement,
AccessibilityTree,
Action,
ActionGenerator,
EventuallyFormula,
ExceptionRecord,
Extracted,
Formula,
InputTextAction,
Key,
LogEntry,
Point,
PressKeyAction,
Sampler,
SelectorPath,
Snapshots,
State,
SwipeAction,
TapAction,
SanderlingRuntime,
WaitAction,
WeightedEntry,
} from "./types.ts";
export { extract, keyedBy } from "./extract.ts";
export { always, eventually, next, now } from "./ltl.ts";
export {
InputText,
PressKey,
Swipe,
Tap,
Wait,
actions,
from,
pressKey,
swipes,
taps,
waitOnce,
weighted,
whenRoute,
} from "./actions.ts";