Entity / foldkit-entity/laws

Obligation

interface · packages/entity/src/laws.ts:63

interface Obligation {
  readonly write: AnyWrite
  readonly rule: Invariant
  readonly assumed: ReadonlyArray<Invariant>
  readonly cases: ReadonlyArray<Step>
}

What a pair left undecided asks of a later pass, as the declarations hold it: break rule with a row before that keeps every assumed invariant and an input within its Schema, meeting the write's when (its from folded in), with the row after the write's sets, increments and assignments make. cases are the values of the finite members this pass could not decide (each a step: the row before, the input, and the row after over them); none where it enumerated nothing.

Members

Obligation.write

property · packages/entity/src/laws.ts:64

readonly write: AnyWrite

Obligation.rule

property · packages/entity/src/laws.ts:65

readonly rule: Invariant

Obligation.assumed

property · packages/entity/src/laws.ts:67

readonly assumed: ReadonlyArray<Invariant>

The Entity's state invariants, held by the row before (none for a create).

Obligation.cases

property · packages/entity/src/laws.ts:68

readonly cases: ReadonlyArray<Step>