Skip to content

Controller

Defined in: Projection.ts:337

Type Parameter
R
readonly history: Effect<readonly Change[]>;

Defined in: Projection.ts:341


readonly update: (bindings: readonly Binding<R>[]) => Effect<void, ProjectionError>;

Defined in: Projection.ts:338

Parameter Type
bindings readonly Binding<R>[]

Effect<void, ProjectionError>


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 Parameter
A
E
R2
Parameter Type
action Effect<A, E, R2>
bindings readonly Binding<R>[]
accepted (value: A) => boolean

Effect<A, | ProjectionError | E, R2>