Properties
Readonly agreementConditions
agreement
Conditions: AgreementCondition[] = [{test: (state, update) => this.withActiveState(state, () =>Promise.all(this.statutes.map(statute => statute.test(state, update))))}]
Readonly constraints
constraints
: MeldConstraint[] = [{check: (state, update) => this.withActiveState(state, () =>Promise.all(this.statutes.map(statute => statute.check(state, update))))}]
Methods
initialise
-
Parameters
Returns Promise<void>
onUpdate
-
Parameters
Returns Promise<void>
withActiveState
-
Type parameters
Parameters
-
-
proc: (orm: OrmState) => T | Promise<T>
-
-
Parameters
Returns T | Promise<T>
Returns Promise<T>