Reaction
@rotorsoft/act-root / act/src / Reaction
Type Alias: Reaction<TEvents, TKey, TActions, TActor>
Reaction<
TEvents,TKey,TActions,TActor> =object
Defined in: libs/act/src/types/reaction.ts:274
Defines a reaction to an event.
Type Parametersโ
TEventsโ
TEvents extends Schemas
Event schemas.
TKeyโ
TKey extends keyof TEvents = keyof TEvents
Event name.
TActionsโ
TActions extends Schemas = Schemas
Action schemas.
TActorโ
Actor type extending base Actor.
Propertiesโ
handlerโ
readonlyhandler:ReactionHandler<TEvents,TKey,TActions,TActor>
Defined in: libs/act/src/types/reaction.ts:280
The reaction handler.
optionsโ
readonlyoptions:ReactionOptions
Defined in: libs/act/src/types/reaction.ts:288
The reaction options.
resolverโ
resolver:
ReactionResolver<TEvents,TKey>
Defined in: libs/act/src/types/reaction.ts:287
The reaction resolver.