Skip to main content

ActionHandlers

@rotorsoft/act-root


@rotorsoft/act-root / act/src / ActionHandlers

Type Alias: ActionHandlers<TState, TEvents, TActions>

ActionHandlers<TState, TEvents, TActions> = { [TKey in keyof TActions]: ActionHandler<TState, TEvents, TActions, TKey> }

Defined in: libs/act/src/types/action.ts:409

Maps action names to their handlers.

Type Parametersโ€‹

TStateโ€‹

TState extends Schema

State schema.

TEventsโ€‹

TEvents extends Schemas

Event schemas.

TActionsโ€‹

TActions extends Schemas

Action schemas.