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:321

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.