Metakit / @doeixd/metakit/policy

Rules

type · packages/metakit/src/policy.ts:58

type Rules<Row, Principal, Given> = {
  readonly [K in keyof Given & string]: Expr.Expr<
    PolicyEnv<Row, Principal>,
    boolean
  > & {
    readonly name: K
  }
}

The rules of a policy as it holds them: each a new expression over the node of the rule it was given, carrying its key as name.