Guard / foldkit-guard/check

PolicyCheck

interface · packages/guard/src/check.ts:16

interface PolicyCheck<Row> {
  readonly definition: Policy.Policy<
    Row,
    unknown,
    Policy.Rules<Row, unknown, Record<'Update' | 'Read', Term>>
  >
  readonly consistent: Verdict.Verdict<never>
  readonly implication: Verdict.Verdict<never>
}

Members

PolicyCheck.definition

property · packages/guard/src/check.ts:18

readonly definition: Policy.Policy<
  Row,
  unknown,
  Policy.Rules<Row, unknown, Record<'Update' | 'Read', Term>>
>

The checked rules as a Policy: hand definition.rules.Update and .Read to Prove.

PolicyCheck.consistent

property · packages/guard/src/check.ts:23

readonly consistent: Verdict.Verdict<never>

PolicyCheck.implication

property · packages/guard/src/check.ts:24

readonly implication: Verdict.Verdict<never>