ActionHandler
@rotorsoft/act-root / act/src / ActionHandler
Type Alias: ActionHandler()<S, E, A, K>
ActionHandler<
S,E,A,K> = (action,snapshot,target) =>Emitted<E> |Emitted<E>[] |undefined
Defined in: libs/act/src/types/action.ts:181
Handles an action, producing one or more emitted events.
Type Parameters
S
S extends Schema
State schema.
E
E extends Schemas
Event schemas.
A
A extends Schemas
Action schemas.
K
K extends keyof A
Action name.
Parameters
action
Readonly<A[K]>
snapshot
Readonly<Snapshot<S, E>>