weasel API - v0.8.0
    Preparing search index...

    Type Alias Rule

    Rule:
        | Selector
        | { all: readonly Rule[] }
        | { any: readonly Rule[] }
        | { not: Rule }
        | { when: (ctx: RuleCtx) => boolean }

    Composable visibility/eligibility rule. Trees of all/any/not nodes over Selector leaves. when is the escape hatch — its closure is opaque to introspection and should be avoided when a declarative form exists. Empty all is true; empty any is false.