ActionRegistry
Defined in: core/src/action/action.registry.ts:8
In-memory registry of Actions keyed by id.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ActionRegistry(): ActionRegistry;Returns
Section titled “Returns”ActionRegistry
Methods
Section titled “Methods”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
id |
string |
Returns
Section titled “Returns”Action | undefined
list()
Section titled “list()”list(): Action[];Defined in: core/src/action/action.registry.ts:22
All registered actions.
Returns
Section titled “Returns”Action[]
register()
Section titled “register()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…actions |
Action[] |
Returns
Section titled “Returns”void