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.
This commit is contained in:
pj committed 2026-04-27 00:05:30 +07:00
1 parent 7b7d051edd
commit 97d7269ba5
2 files changed
+14

No files matched your search

+1
View File
@@ -38,4 +38,5 @@ export {
taps,
waitOnce,
weighted,
whenRoute,
} from "./actions.ts";