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

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

Map of action names to state definitions.


events

readonly events: EventRegister<TEvents>

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

Map of event names to event registration info.