Lime Web Components API Documentation - v6.27.0
    Preparing search index...

    Interface CompiledRuleBeta

    A Rule compiled into an evaluate function plus the static reads it depends on.

    Returned by RuleRegistry.compile. Captures the primitives and saved rules that were registered when compile ran. See the snapshot note on compile.

    Fails closed. A slot with no provider, a thrown predicate, and any other missing data evaluate to false. The full contract, including how exceptions are caught, lives on compile.

    interface CompiledRule {
        reads: readonly (keyof ContextMap)[];
        evaluate(scope: ContextScope): boolean;
    }
    Index

    Properties

    Methods

    Properties

    reads: readonly (keyof ContextMap)[]

    The complete, de-duplicated union of context keys every referenced primitive declares it reads, across the whole rule tree. The full superset — not the keys one evaluation happens to touch — so a subscriber watches every key a short-circuiting rule could read.

    Methods

    • Beta

      Evaluate the rule against a scope. Fails closed: if a primitive predicate throws or a context key has no provider, returns false. See compile for the full contract.

      Parameters

      Returns boolean