Metakit / @doeixd/metakit/interpreter
allow
function · packages/metakit/src/interpreterRun.ts:64
function allow<
Row,
Principal,
Rules extends Readonly<
Record<string, Expr.Expr<Policy.PolicyEnv<Row, Principal>, boolean>>
>,
>(
policy: Policy.Policy<Row, Principal, Rules>,
rule: NoInfer<Policy.RuleOf<Rules>>,
env: NoInfer<Policy.PolicyEnv<Row, Principal>>,
): Effect.Effect<boolean>Evaluate rule, one of policy.rules, using the current Interpreter; a rule of another policy throws.