Skip to content

ActionRegistry

Defined in: core/src/action/action.registry.ts:8

In-memory registry of Actions keyed by id.

new ActionRegistry(): ActionRegistry;

ActionRegistry

get(id): Action | undefined;

Defined in: core/src/action/action.registry.ts:25

Look up a registered action by id, or undefined if none matches.

Parameter Type
id string

Action | undefined


list(): Action[];

Defined in: core/src/action/action.registry.ts:22

All registered actions.

Action[]


register(...actions): void;

Defined in: core/src/action/action.registry.ts:12

Register one or more actions; throws ActionAlreadyRegisteredError if an id is already taken.

Parameter Type
actions Action[]

void