Controller
Defined in: Projection.ts:337
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
R |
Properties
Section titled “Properties”history
Section titled “history”readonly history: Effect<readonly Change[]>;Defined in: Projection.ts:341
update
Section titled “update”readonly update: (bindings: readonly Binding<R>[]) => Effect<void, ProjectionError>;Defined in: Projection.ts:338
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
bindings |
readonly Binding<R>[] |
Returns
Section titled “Returns”Effect<void,
ProjectionError>
updateAfter
Section titled “updateAfter”readonly updateAfter: <A, E, R2>(action: Effect<A, E, R2>, bindings: readonly Binding<R>[], accepted: (value: A) => boolean) => Effect<A, | ProjectionError| E, R2>;Defined in: Projection.ts:343
Validate before running the action; concurrent actions fail without queuing. Admitted work belongs to the contributor.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
A |
E |
R2 |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
action |
Effect<A, E, R2> |
bindings |
readonly Binding<R>[] |
accepted |
(value: A) => boolean |
Returns
Section titled “Returns”Effect<A, |
ProjectionError
| E, R2>