ActionHandler
@rotorsoft/act-root / act/src / ActionHandler
Type Alias: ActionHandler()<S, E, A, K>
ActionHandler<
S
,E
,A
,K
> = (action
,state
,target
) =>Emitted
<E
> |Emitted
<E
>[] |undefined
Defined in: libs/act/src/types/action.ts:170
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
]>
state
Readonly
<S
>