Skip to main content

Registry

@rotorsoft/act-root


@rotorsoft/act-root / act/src / Registry

Type Alias: Registry<TSchemaReg, TEvents, TActions>

Registry<TSchemaReg, TEvents, TActions> = object

Defined in: libs/act/src/types/registry.ts:56

Registry of all actions and events for a domain.

Type Parametersโ€‹

TSchemaRegโ€‹

TSchemaReg extends SchemaRegister<TActions>

State schemas.

TEventsโ€‹

TEvents extends Schemas

Event schemas.

TActionsโ€‹

TActions extends Schemas

Action schemas.

Propertiesโ€‹

actionsโ€‹

readonly actions: { [TKey in keyof TActions]: State<TSchemaReg[TKey], TEvents, TActions> }

Defined in: libs/act/src/types/registry.ts:61

Map of action names to state definitions.


eventsโ€‹

readonly events: EventRegister<TEvents>

Defined in: libs/act/src/types/registry.ts:64

Map of event names to event registration info.