CompiledRule: ((scope: RuleScope) => boolean)

Type declaration

    • (scope: RuleScope): boolean
    • Alpha

      A Rule compiled to a callable predicate.

      Returned by 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.

      Parameters

      Returns boolean